Click here to Skip to main content
15,847,549 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
st.SyncDirection = (int)tc.Microsoft.Synchronization.Data.SyncDirection;

Here is the code where I get the error,
if (((tc.SyncDirection == Microsoft.Synchronization.Data.SyncDirection.Bidirectional) ||
      (tc.SyncDirection == Microsoft.Synchronization.Data.SyncDirection.UploadOnly)) &&

Error: CS0019 Operator '==' cannot be applied to operands of type 'SyncDirection' and 'SyncDirection'.

After that i made these changes is these correct way to implement
if ((((int)tc.SyncDirection == (int)Microsoft.Synchronization.Data.SyncDirection.Bidirectional) ||
      ((int)tc.SyncDirection == (int)Microsoft.Synchronization.Data.SyncDirection.UploadOnly)) &&

What I have tried:

i did the upgrade on frame works after that i see these issue

3.5 ->4.7.2

please let me know what needs to fix in those lines
Updated 20-Jun-19 7:23am

1 solution

st.SyncDirection = (int).tc.Microsoft.Synchronization.Data.SyncDirection;

After your (int) your have a .

Should be
st.SyncDirection = (int)tc.Microsoft.Synchronization.Data.SyncDirection;
Share this answer
DanielBrownAU 20-Jun-19 1:52am    
remove the

Also please take a look at
BillWoodruff 20-Jun-19 17:23pm    
BillWoodruff 20-Jun-19 17:30pm    
You have to figure that out.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900