string tmp = "\"是\"";

解决方案 »

  1.   

    MessageBox.Show("\""+"是"+"\"");
      

  2.   

    我是VB转C#的,在VB中可以这样:
    msgbox """是"""
      

  3.   

    规则字符串字符中跟在反斜杠字符 (\) 后面的字符必须是下列字符之一:'、"、\、0、a、b、f、n、r、t、u、U、x、v。否则将发生编译时错误。
    示例
    string a = "hello, world";                  // hello, world
    string b = @"hello, world";               // hello, world
    string c = "hello \t world";               // hello     world
    string d = @"hello \t world";               // hello \t world
    string e = "Joe said \"Hello\" to me";      // Joe said "Hello" to me
    string f = @"Joe said ""Hello"" to me";   // Joe said "Hello" to me
    string g = "\\\\server\\share\\file.txt";   // \\server\share\file.txt
    string h = @"\\server\share\file.txt";      // \\server\share\file.txt
    string i = "one\r\ntwo\r\nthree";
    string j = @"one
    two
    three";
      

  4.   

    string Message= @"是";
    MessageBox.Show(Me, Message, "", MessageBoxButtons.YesNo, _
                MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign)