コード例 #1
0
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     Server.ChrClasses result = new Server.ChrClasses();
     result.CinematicSequence = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     result.Class = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     result.ExpansionRequired = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     result.FemaleName = ((string[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string[]), stream)));
     result.Flags = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     result.Name = ((string[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string[]), stream)));
     result.NeutralName = ((string[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string[]), stream)));
     object objResult = ((object)(result));
     object temp8 = ((byte[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(byte[]), stream)));
     fieldInfo8.SetValue(objResult, temp8);
     object temp9 = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     fieldInfo9.SetValue(objResult, temp9);
     object temp10 = ((byte[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(byte[]), stream)));
     fieldInfo10.SetValue(objResult, temp10);
     object temp11 = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     fieldInfo11.SetValue(objResult, temp11);
     return objResult;
 }
コード例 #2
0
 public static object DeepCopier(object original)
 {
     Server.ChrClasses input = ((Server.ChrClasses)(original));
     Server.ChrClasses result = new Server.ChrClasses();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.CinematicSequence = input.CinematicSequence;
     result.Class = input.Class;
     result.ExpansionRequired = input.ExpansionRequired;
     result.FemaleName = ((string[])(Orleans.Serialization.SerializationManager.DeepCopyInner(input.FemaleName)));
     result.Flags = input.Flags;
     result.Name = ((string[])(Orleans.Serialization.SerializationManager.DeepCopyInner(input.Name)));
     result.NeutralName = ((string[])(Orleans.Serialization.SerializationManager.DeepCopyInner(input.NeutralName)));
     object objResult = ((object)(result));
     object temp8 = ((byte[])(Orleans.Serialization.SerializationManager.DeepCopyInner(fieldInfo8.GetValue(input))));
     fieldInfo8.SetValue(objResult, temp8);
     object temp9 = input.SpellFamily;
     fieldInfo9.SetValue(objResult, temp9);
     object temp10 = ((byte[])(Orleans.Serialization.SerializationManager.DeepCopyInner(fieldInfo10.GetValue(input))));
     fieldInfo10.SetValue(objResult, temp10);
     object temp11 = input.powerType;
     fieldInfo11.SetValue(objResult, temp11);
     return objResult;
 }