javascript - C# tostring(radix) -
i have following line in javascript:
c = number(string_1.charcodeat(i) ^ string_2.charcodeat(u)).tostring(16);
i need rewrite in c#, got far:
string c = (convert.tochar(string_1[i]) ^ convert.tochar(string_2[u])).tostring(16);
i'm not able enter radix value in tostring method. suggestions how can this? thanks
you can use convert.tostring
write out value in different base: (note bases supported; 16 1 of them, see docs details.)
int = 16; var str = convert.tostring(16, 16);
Comments
Post a Comment