Example #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;
 }
Example #2
0
 public static System.Collections.JsDictionary ToJsDictionary(CustomObject value)
 {
     if ((value == null))
     {
         return null;
     }
     System.Collections.JsDictionary returnValue = new System.Collections.JsDictionary();
     returnValue["Add"] = EnumConverters.ConvertNullableSomeEnumToString(value.Add);
     returnValue["Property1"] = value.Property1;
     returnValue["Property2"] = value.Property2;
     returnValue["Property3"] = new System.Array();
     for (int i = 0; (i < value.Property3.Count); i = (i + 1))
     {
         System.Script.Reinterpret<System.Array>(returnValue["Property3"])[i] = CustomObject.ToJsDictionary(value.Property3[i]);
     }
     returnValue["Property4"] = CustomObject2.ToJsDictionary(value.Property4);
     returnValue["Property5"] = EnumConverters.ConvertSomeEnumToString(value.Property5);
     return returnValue;
 }