Click here to Skip to main content
15,847,583 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
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
C#
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
Posted
Updated 20-Jun-19 7:23am
v4

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
 
Comments
DanielBrownAU 20-Jun-19 1:52am    
remove the
tc.
before
Microsoft.


Also please take a look at https://docs.microsoft.com/en-us/previous-versions/sql/synchronization/sync-framework-2.0/bb726194(v%3Dsql.105)
BillWoodruff 20-Jun-19 17:23pm    
+5
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