Пример #1
0
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     Orleans.Samples.ClassScheduler.Data.TeacherInfo result = new Orleans.Samples.ClassScheduler.Data.TeacherInfo();
     result.FirstName = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     result.LastName  = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     return(result);
 }
Пример #2
0
 public static object DeepCopier(object original)
 {
     Orleans.Samples.ClassScheduler.Data.TeacherInfo input  = ((Orleans.Samples.ClassScheduler.Data.TeacherInfo)(original));
     Orleans.Samples.ClassScheduler.Data.TeacherInfo result = new Orleans.Samples.ClassScheduler.Data.TeacherInfo();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.FirstName = input.FirstName;
     result.LastName  = input.LastName;
     return(result);
 }
Пример #3
0
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     Orleans.Samples.ClassScheduler.Data.TeacherInfo input = ((Orleans.Samples.ClassScheduler.Data.TeacherInfo)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.FirstName, stream, typeof(String));
     Orleans.Serialization.SerializationManager.SerializeInner(input.LastName, stream, typeof(String));
 }