Exemplo n.º 1
0
 public static void Serialize(SecondEventPayload instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         obj.AddFloat(1, instance.Field1);
     }
     {
         obj.AddDouble(2, instance.Field2);
     }
 }
Exemplo n.º 2
0
            public static SecondEventPayload Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                var instance = new SecondEventPayload();

                {
                    instance.Field1 = obj.GetFloat(1);
                }
                {
                    instance.Field2 = obj.GetDouble(2);
                }
                return(instance);
            }