public static global::System.Object Deserializer(global::System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     global::PerfTests.Protocol.TestStateful result = new global::PerfTests.Protocol.TestStateful();
     global::Orleans.@Serialization.@DeserializationContext.@Current.@RecordObject(result);
     setField0(result, (global::System.Collections.Generic.List<global::MOUSE.Core.MessageHeader>)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Collections.Generic.List<global::MOUSE.Core.MessageHeader>), stream));
     return (global::PerfTests.Protocol.TestStateful)result;
 }
 public static global::System.Object DeepCopier(global::System.Object original)
 {
     global::PerfTests.Protocol.TestStateful input = ((global::PerfTests.Protocol.TestStateful)original);
     global::PerfTests.Protocol.TestStateful result = new global::PerfTests.Protocol.TestStateful();
     setField0(result, (global::System.Collections.Generic.List<global::MOUSE.Core.MessageHeader>)global::Orleans.Serialization.SerializationManager.@DeepCopyInner(getField0(input)));
     global::Orleans.@Serialization.@SerializationContext.@Current.@RecordObject(original, result);
     return result;
 }