示例#1
0
 public static global::System.Object Deserializer(global::System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     global::Shared.RealmSettings result = new global::Shared.RealmSettings();
     global::Orleans.@Serialization.@DeserializationContext.@Current.@RecordObject(result);
     field1.@SetValue(result, (global::System.String)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.String), stream));
     field7.@SetValue(result, (global::System.Int32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Int32), stream));
     field0.@SetValue(result, (global::System.Int32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Int32), stream));
     field3.@SetValue(result, (global::System.String)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.String), stream));
     field6.@SetValue(result, (global::System.Int32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Int32), stream));
     field2.@SetValue(result, (global::System.String)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.String), stream));
     field8.@SetValue(result, (global::System.UInt16)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.UInt16), stream));
     field4.@SetValue(result, (global::System.Int32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Int32), stream));
     field5.@SetValue(result, (global::System.Int32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Int32), stream));
     return (global::Shared.RealmSettings)result;
 }
示例#2
0
 public static global::System.Object DeepCopier(global::System.Object original)
 {
     global::Shared.RealmSettings input = ((global::Shared.RealmSettings)original);
     global::Shared.RealmSettings result = new global::Shared.RealmSettings();
     global::Orleans.@Serialization.@SerializationContext.@Current.@RecordObject(original, result);
     field1.@SetValue(result, field1.@GetValue(input));
     field7.@SetValue(result, field7.@GetValue(input));
     field0.@SetValue(result, field0.@GetValue(input));
     field3.@SetValue(result, field3.@GetValue(input));
     field6.@SetValue(result, field6.@GetValue(input));
     field2.@SetValue(result, field2.@GetValue(input));
     field8.@SetValue(result, field8.@GetValue(input));
     field4.@SetValue(result, field4.@GetValue(input));
     field5.@SetValue(result, field5.@GetValue(input));
     return result;
 }