Ejemplo n.º 1
0
        public NamedJsonBuffer(string name, JsonBuffer buffer)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            if (buffer.IsEmpty)
            {
                throw new ArgumentException(null, "buffer");
            }

            _name   = Mask.NullString(name);
            _buffer = buffer;
        }
Ejemplo n.º 2
0
 public static JsonToken String(string text)
 {
     return(new JsonToken(JsonTokenClass.String, Mask.NullString(text)));
 }
Ejemplo n.º 3
0
 public JsonException(string message, Exception innerException) :
     base(Mask.NullString(message, _defaultMessage), innerException)
 {
 }
Ejemplo n.º 4
0
 public JsonException(string message) :
     base(Mask.NullString(message, _defaultMessage), null)
 {
 }
Ejemplo n.º 5
0
 public InvalidMemberException(string message, Exception innerException) :
     base(Mask.NullString(message, _defaultMessage), innerException)
 {
 }
Ejemplo n.º 6
0
 public static string EmptyString(string actual, string emptyValue)
 {
     return(Mask.NullString(actual).Length == 0 ? emptyValue : actual);
 }
Ejemplo n.º 7
0
 public static StringBuilder Enquote(string str, StringBuilder sb)
 {
     return(EnquoteStringOrChars(str, null, 0, Mask.NullString(str).Length, sb));
 }