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

                {
                    instance.Field1 = obj.GetBool(1);
                }
                {
                    instance.Field2 = obj.GetInt32(2);
                }
                return(instance);
            }