char a=(char)32

Convert.ToChar(32);

解决方案 »

  1.   

    首先:c#是完全面向对象的开发工具,甚至它的类型也是对象,所以请记住,不管你要做什么都是要调用某个对象的方法!
    在你的这个问题久是要调用对象的.ToString()方法
      

  2.   

    CHR(32) = '\0x20';
    CHR(13) = '\r';
    CHR(10) = '\n';
      

  3.   

    UP
    Chr(9)     相当于string.empty
    Chr(34)="  是一个双引号
    Chr(39)='  是一个单引号 
      

  4.   

    32.toString()
    9.toString()
    34.toString()
    39.toString()
    13.toString()
    10.toString()
    10.toString()
      

  5.   

    Escape Sequence Description 
    \t Tab (Unicode 0x0009). 
    \r Carriage return (0x000d). 
    \n Newline (line feed) (0x000a). 
    \v Vertical tab (0x000b). 
    \a Alert (0x0007). 
    \b Backspace (0x0008). 
    \f Form feed (0x000c). 
    \0 Null (0x0000). 
    \\ Backslash (0x005c). 
    \' Single quote (0x0027). 
    \" Double quote (0x0022). 
    \xD Hexadecimal character code with variable number of digits. 
    \uABCD Unicode character 0xABCD (either u or U is OK, where A, B, C, and D are valid hexadecimal digits 0-9, a-f, A-F).