Javascript to c#

I need the equivalent of this two function in c#


   JAVSCRIPT                                     C#
--------------------------------- -----------------------
String.fromCharCode                     ?
str.charCodeAt(i)                           ?
karanbaAsked:
Who is Participating?
 
aspnetguyConnect With a Mentor Commented:
JS
var test = String.fromCharCode(112, 108, 97, 105, 110);

C#
String s = new String(new char[] {112,108,97,110});

JS
str.charCodeAt(i)

C#
(Int32)str[i];
0
 
karanbaAuthor Commented:
String s = new String(new char[] {112,108,97,110});


I got error with this.
0
All Courses

From novice to tech pro — start learning today.