C# .NET - Conversion

Asked By devender on 20-Jan-12 05:56 AM
Can anyone tell me the whole detailed procedure of

creating a hindi version of a ENGLISH name which is entered by the user in a text box in windows application

and store that hindi version in a local variable ....


plz plz plz plz

help me.... 
kalpana aparnathi replied to devender on 20-Jan-12 06:11 AM
Try this code:
string input = "0928;0940;0932;092E;";
Regex rx = new Regex(@"([0-9A-Fa-f]{4});");
string output = rx.Replace(input, match => ((char)Int32.Parse(match.Groups[1].Value, NumberStyles.HexNumber)).ToString());
 
Output: "नीलम"
devender replied to kalpana aparnathi on 20-Jan-12 06:25 AM
these two errors are showing in my program... plz check it once..

Error 1 Cannot convert lambda expression to type 'string' because it is not a delegate type D:\Suvidha\WindowsFormsApplication1\WindowsFormsApplication1\New_Employee_Entry.cs 66 47 WindowsFormsApplication1



Error 2 The name 'NumberStyles' does not exist in the current context D:\Suvidha\WindowsFormsApplication1\WindowsFormsApplication1\New_Employee_Entry.cs 66 98 WindowsFormsApplication1