private static int GetLength(StringBuilder value) { if (value == null) { return 0; } else { return value.Length; } }