Beispiel #1
0
 /// <summary>
 /// Make a .NET business object from the provided JsonObject using the ObjectMaker for type t.
 /// </summary>
 public object MakeObject(JsonObject json, Type t)
 {
     if (t != null)
     {
         return(GetObjectMaker(t)(json));
     }
     else
     {
         return(null);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Make a .NET business object from the provided JsonObject using the ObjectMaker for type T.
 /// </summary>
 public T MakeObject <T>(JsonObject json)
 {
     return((T)GetObjectMaker(typeof(T))(json));
 }