How about: int charCode = (int)'m'; char letter = (char)charCode;
> -----Original Message----- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Weakliem, Gordon > Sent: Tuesday, April 23, 2002 8:14 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] C# Ascii, Asc, Char, Chr functions? > > > Chr -> System.Char.GetNumericValue(char) > Asc -> System.Char.Parse(String) > > > > -----Original Message----- > From: Edward Ferron [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 7:01 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] C# Ascii, Asc, Char, Chr functions? > > > How do I get Asc, Ascii, Char Chr functions in C#? Is there > another class for them? They are available in VB.NET but I > can not find the namespace from which they come from? > > Thanks, > > Ed > > You can read messages from the DOTNET archive, unsubscribe > from DOTNET, or subscribe to other DevelopMentor lists at > http://discuss.develop.com. > > > The information in this > electronic mail message is sender's business Confidential and > may be legally privileged. It is intended solely for the > addressee(s). Access to this Internet electronic mail > message by anyone else is unauthorized. If you are not the > intended recipient, any disclosure, copying, distribution or > any action taken or omitted to be taken in reliance on it is > prohibited and may be unlawful. The sender believes that this > E-mail and any attachments were free of any virus, worm, > Trojan horse, and/or malicious code when sent. This message > and its attachments could have been infected during > transmission. By reading the message and opening any > attachments, the recipient accepts full responsibility for > taking protective and remedial action about viruses and other > defects. Galileo International is not liable for any loss or > damage arising in any way from this message or its attachments. > > You can read messages from the DOTNET archive, unsubscribe > from DOTNET, or subscribe to other DevelopMentor lists at > http://discuss.develop.com. > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.