" and \ in the string

string str = @"C:\Windows";

string str = "C:\\Windows";

 

 

In order to express string:       abc"def

 

string str = "abc\"def";

string str = @"abc""def";

 

 

posted @ 2010-01-15 23:15  greencolor  阅读(158)  评论(0编辑  收藏  举报