C#字符串前"@"的作用

在写sql语句时,经常会这样写,string sql = @"select * from ……",这里@的作用是让特殊字符不被转义.

posted @ 2012-07-02 21:43  永动机  阅读(249)  评论(0)    收藏  举报