/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static class StringExt { public static string AsText(this string source) { if (null == source) return "null"; const string doubleQuotes = "\""; return string.Concat(doubleQuotes, source, doubleQuotes); } }