Exemplo n.º 1
0
 public static System.Collections.JsDictionary ToJsDictionary(CustomObject2 value)
 {
     if ((value == null))
     {
         return null;
     }
     System.Collections.JsDictionary returnValue = new System.Collections.JsDictionary();
     returnValue["Property1"] = value.Property1;
     returnValue["Property2"] = value.Property2;
     returnValue["Property3"] = EnumConverters.ConvertNullableSomeEnumToString(value.Property3);
     return returnValue;
 }
Exemplo n.º 2
0
 public static CustomObject2 FromJsDictionary(System.Collections.JsDictionary value)
 {
     if ((value == null))
     {
         return null;
     }
     CustomObject2 returnValue = new CustomObject2();
     returnValue.Property1 = System.Script.Reinterpret<string>(value["Property1"]);
     returnValue.Property2 = System.Script.Reinterpret<System.Nullable<int>>(value["Property2"]);
     returnValue.Property3 = EnumConverters.ConvertStringToNullableSomeEnum(System.Script.Reinterpret<string>(value["Property3"]));
     return returnValue;
 }