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