How to XOR with Hexadecimal value in .NET?

I have this code in C#:

int iAvoid = 0xFFFF ^ (int) _stxConfigPort;

I tried to do

dim iavoid as integer= 0xffff xor ctype(_stxConfigPort, integer)

but it doesn't work. What is the right way then?

Thanks
ReedsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Harisha M GConnect With a Mentor Commented:
Hi,

dim iavoid as integer= &Hffff xor ctype(_stxConfigPort, integer)


---
Harish
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.