Tuesday, December 16, 2008

how to add double quote ( " ) in C# string..

I was developing C#/SQL code generator and i was struggling little bit how to add double quote (") in C# .. and this is how

string selectCommand = string.Format("command.CommandText = \"SELECT * FROM [{0}]\";", entity.TableName));