示例#1
0
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     AdventureTerreInterfaces.Models.CommandAction result = new AdventureTerreInterfaces.Models.CommandAction();
     result.CommandName = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     result.Flag = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     result.NewValue = ((Boolean)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Boolean), stream)));
     result.ShouldFlip = ((Boolean)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Boolean), stream)));
     return result;
 }
示例#2
0
 public static object DeepCopier(object original)
 {
     AdventureTerreInterfaces.Models.CommandAction input = ((AdventureTerreInterfaces.Models.CommandAction)(original));
     AdventureTerreInterfaces.Models.CommandAction result = new AdventureTerreInterfaces.Models.CommandAction();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.CommandName = input.CommandName;
     result.Flag = input.Flag;
     result.NewValue = input.NewValue;
     result.ShouldFlip = input.ShouldFlip;
     return result;
 }