Пример #1
0
 public static global::System.Object Deserializer(global::System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     global::Server.MapEntry result = new global::Server.MapEntry();
     global::Orleans.@Serialization.@DeserializationContext.@Current.@RecordObject(result);
     field4.@SetValue(result, (global::System.UInt32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.UInt32), stream));
     field5.@SetValue(result, (global::System.Single)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Single), stream));
     field6.@SetValue(result, (global::System.Single)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Single), stream));
     field3.@SetValue(result, (global::System.UInt32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.UInt32), stream));
     field1.@SetValue(result, (global::System.String)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.String), stream));
     field0.@SetValue(result, (global::System.UInt32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.UInt32), stream));
     field7.@SetValue(result, (global::System.Byte[])global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Byte[]), stream));
     field8.@SetValue(result, (global::System.Byte[])global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Byte[]), stream));
     field2.@SetValue(result, (global::Server.MapType)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::Server.MapType), stream));
     return (global::Server.MapEntry)result;
 }
Пример #2
0
 public static global::System.Object DeepCopier(global::System.Object original)
 {
     global::Server.MapEntry input = ((global::Server.MapEntry)original);
     global::Server.MapEntry result = new global::Server.MapEntry();
     global::Orleans.@Serialization.@SerializationContext.@Current.@RecordObject(original, result);
     field4.@SetValue(result, field4.@GetValue(input));
     field5.@SetValue(result, field5.@GetValue(input));
     field6.@SetValue(result, field6.@GetValue(input));
     field3.@SetValue(result, field3.@GetValue(input));
     field1.@SetValue(result, field1.@GetValue(input));
     field0.@SetValue(result, field0.@GetValue(input));
     field7.@SetValue(result, (global::System.Byte[])global::Orleans.Serialization.SerializationManager.@DeepCopyInner(field7.@GetValue(input)));
     field8.@SetValue(result, (global::System.Byte[])global::Orleans.Serialization.SerializationManager.@DeepCopyInner(field8.@GetValue(input)));
     field2.@SetValue(result, field2.@GetValue(input));
     return result;
 }