Beispiel #1
0
 public static JObject GetJObject(LS1APISpecObject item)
 {
     if (item == null)
     {
         return(null);
     }
     return(item.GetJObject());
 }
Beispiel #2
0
 public static void Add(this JObject jo, string name, LS1APISpecObject obj)
 {
     if (obj == null)
     {
         jo.Add(name, null);
     }
     else
     {
         jo.Add(name, obj.GetJObject());
     }
 }