Put ascii to char

Eric Shiau <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <DOTNET%[email protected]>
This might be a very simple question, but I just cannot find solution
through any web tutorial.

I need to put non-printable characters to char. e.g.,

char escape=27;  // which is Escape character

above statement is valid on C/C++, but for C#, I got the following error

error CS0031: Constant value '27' cannot be converted to a 'char'

Could anyone help me with this?

Thanks,

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.