Return to Snippet

Revision: 38252
at December 29, 2010 21:35 by ronklein


Initial Code
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);
  }
}

Initial URL

                                

Initial Description

                                

Initial Title
String extension useful for logging

Initial Tags
text

Initial Language
C#