public static ToJson ( object val, |
||
val | object | |
type | ||
return |
public void Val(IEnumerable valList) { JItem temp = JConvert.ToJson(valList); if (temp._DomList != null) { _DomList = temp._DomList; _Dom = _DomList[_DomList.Count - 1]; } else if (temp._ValList != null) { _ValList = temp._ValList; } }
public JItem Add(object val) { string temp = JConvert.ToJson(val); if (temp == null) { Add(JConvert.ToJson(val, val.GetType())); } else { DoAdd(temp); } return(this); }
public void Val(object val) { _Val = JConvert.ToJson(val); if (_Val == null) { if (val is IEnumerable) { Val((IEnumerable)val); } else { Val(JConvert.ToJson(val, val.GetType())); } } }
public void Val(ulong val) { _Val = JConvert.ToJson(val); }
public void Val(uint val) { _Val = JConvert.ToJson(val); }
public void Val(short val) { _Val = JConvert.ToJson(val); }
public void Val(sbyte val) { _Val = JConvert.ToJson(val); }
public JItem Add(string val) { DoAdd(JConvert.ToJson(val)); return(this); }
public JItem Add(decimal val) { DoAdd(JConvert.ToJson(val)); return(this); }
public void Val(double val) { _Val = JConvert.ToJson(val); }
public void Val(decimal val) { _Val = JConvert.ToJson(val); }
public void Val(DateTime val) { _Val = JConvert.ToJson(val); }
public void Val(char val) { _Val = JConvert.ToJson(val); }
public void Val(bool val) { _Val = JConvert.ToJson(val); }
public void Val(string val) { _Val = JConvert.ToJson(val); }
public void Val(Enum val) { _Val = JConvert.ToJson(val); }
public void Val(float val) { _Val = JConvert.ToJson(val); }
public JItem Add(DateTime val) { DoAdd(JConvert.ToJson(val)); return(this); }
public void Val(Guid val) { _Val = JConvert.ToJson(val); }
public JItem Add(Enum val) { DoAdd(JConvert.ToJson(val)); return(this); }
public JItem Add(ushort val) { DoAdd(JConvert.ToJson(val)); return(this); }