This line of code is written in java:
c = (char) ( (Integer.decode(thisElement).intValue() & 0xFF00) >> 8 );
To convert it to C#, I could find Convert.ToInt32 C# equivalent for the Integer.decode
but I do not have any idea how to convert intValue() in this code.
this is what I have done in C#:
c = (char) ( (Convert.ToInt32(thisElement). intValue() & 0xFF00) >> 8);
Does anyone have any idea?
Thanks in advance
.intValue()and see if that worksintValue()in C#? Are you sure thatConvert.ToInt32will actually do what you want? What is your input, and what do you want your output to be? Just transliterating code from one language to another is a bad idea, generally...I do not get any errorAre you sure? your code won't compile when you have.intValue().