///<summary> Reads this HLAmanagerMessage from the specified stream.</summary> ///<param name="reader"> the input stream to read from</param> ///<returns> the object</returns> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override object Deserialize(HlaEncodingReader reader, ref object msg) { HLAmanagerMessage decodedValue; if (!(msg is HLAmanagerMessage)) { decodedValue = new HLAmanagerMessage(); BaseInteractionMessage baseMsg = msg as BaseInteractionMessage; decodedValue.InteractionClassHandle = baseMsg.InteractionClassHandle; decodedValue.FederationExecutionHandle = baseMsg.FederationExecutionHandle; decodedValue.UserSuppliedTag = baseMsg.UserSuppliedTag; } else { decodedValue = msg as HLAmanagerMessage; } object tmp = decodedValue; decodedValue = base.Deserialize(reader, ref tmp) as HLAmanagerMessage; return decodedValue; }
///<summary> Reads this HLAmanagerMessage from the specified stream.</summary> ///<param name="reader"> the input stream to read from</param> ///<returns> the object</returns> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override object Deserialize(HlaEncodingReader reader, ref object msg) { HLAmanagerMessage decodedValue; if (!(msg is HLAmanagerMessage)) { decodedValue = new HLAmanagerMessage(); BaseInteractionMessage baseMsg = msg as BaseInteractionMessage; decodedValue.InteractionClassHandle = baseMsg.InteractionClassHandle; decodedValue.FederationExecutionHandle = baseMsg.FederationExecutionHandle; decodedValue.UserSuppliedTag = baseMsg.UserSuppliedTag; } else { decodedValue = msg as HLAmanagerMessage; } object tmp = decodedValue; decodedValue = base.Deserialize(reader, ref tmp) as HLAmanagerMessage; return(decodedValue); }