public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream) { Example.InventoryItemRenamed result = ((Example.InventoryItemRenamed)(System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(Example.InventoryItemRenamed)))); object objResult = ((object)(result)); object temp1 = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream))); fieldInfo1.SetValue(objResult, temp1); object temp2 = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream))); fieldInfo2.SetValue(objResult, temp2); return(objResult); }
public static object DeepCopier(object original) { Example.InventoryItemRenamed input = ((Example.InventoryItemRenamed)(original)); Example.InventoryItemRenamed result = ((Example.InventoryItemRenamed)(System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(Example.InventoryItemRenamed)))); Orleans.Serialization.SerializationContext.Current.RecordObject(original, result); object objResult = ((object)(result)); object temp1 = input.NewName; fieldInfo1.SetValue(objResult, temp1); object temp2 = input.OldName; fieldInfo2.SetValue(objResult, temp2); return(objResult); }
void On(InventoryItemRenamed e) => name = e.NewName;
public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected) { Example.InventoryItemRenamed input = ((Example.InventoryItemRenamed)(untypedInput)); Orleans.Serialization.SerializationManager.SerializeInner(input.NewName, stream, typeof(string)); Orleans.Serialization.SerializationManager.SerializeInner(input.OldName, stream, typeof(string)); }
public void On(InventoryItemRenamed e) { name = e.NewName; }