public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream) { AdventureTerreInterfaces.Models.StateChangeAction result = new AdventureTerreInterfaces.Models.StateChangeAction(); result.Flag = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream))); result.PrintText = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream))); result.ToValue = ((Boolean)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Boolean), stream))); return result; }
public static object DeepCopier(object original) { AdventureTerreInterfaces.Models.StateChangeAction input = ((AdventureTerreInterfaces.Models.StateChangeAction)(original)); AdventureTerreInterfaces.Models.StateChangeAction result = new AdventureTerreInterfaces.Models.StateChangeAction(); Orleans.Serialization.SerializationContext.Current.RecordObject(original, result); result.Flag = input.Flag; result.PrintText = input.PrintText; result.ToValue = input.ToValue; return result; }