示例#1
0
 public Json(Object value)
     : this(value.IsJsonPrimitive() ? null : value, value == null || value.IsJsonPrimitive() ? null : value.GetType())
 {
     if (value.IsJsonPrimitive())
     {
         _my_primitive = value;
         _my_state = State.Primitive;
     }
 }
示例#2
0
 public JsonPrimitive(Object value) 
     : base(value.IsJsonPrimitive() ? null : value)
 {
     if (value.IsJsonPrimitive()) _my_primitive = value;
     (_state == State.Primitive).AssertTrue();
 }