如何在C#中创建带有特殊字符的字符串

如何在C#中创建带有特殊字符的字符串

问题描述:

如何创建包含以下内容的字符串:

How can I create a string which contains the following:

<Object type="System.Windows.Forms.Form

在引号中使用转义字符:

Use an escape character for the quote:

string temp = "<Object type=\"System.Windows.Forms.Form"

有关更多示例,请参见msdn文章: http://msdn.microsoft.com/en-us/library/h21280bw.aspx

See the msdn article for more examples: http://msdn.microsoft.com/en-us/library/h21280bw.aspx

修改

C#的正确链接: C#编程指南