コード例 #1
0
 public static global::System.Object Deserializer(global::System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     global::Shared.PacketOut result = new global::Shared.PacketOut();
     global::Orleans.@Serialization.@DeserializationContext.@Current.@RecordObject(result);
     field0.@SetValue(result, (global::System.IO.MemoryStream)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.IO.MemoryStream), stream));
     field1.@SetValue(result, (global::Shared.PacketType)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::Shared.PacketType), stream));
     return (global::Shared.PacketOut)result;
 }
コード例 #2
0
 public static global::System.Object DeepCopier(global::System.Object original)
 {
     global::Shared.PacketOut input = ((global::Shared.PacketOut)original);
     global::Shared.PacketOut result = new global::Shared.PacketOut();
     global::Orleans.@Serialization.@SerializationContext.@Current.@RecordObject(original, result);
     field0.@SetValue(result, (global::System.IO.MemoryStream)global::Orleans.Serialization.SerializationManager.@DeepCopyInner(field0.@GetValue(input)));
     field1.@SetValue(result, field1.@GetValue(input));
     return result;
 }