public static ClientMessage ReadFrom(System.IO.BinaryReader reader) { switch (reader.ReadInt32()) { case DebugMessage.TAG: return(DebugMessage.ReadFrom(reader)); case ActionMessage.TAG: return(ActionMessage.ReadFrom(reader)); case DebugUpdateDone.TAG: return(DebugUpdateDone.ReadFrom(reader)); case RequestDebugState.TAG: return(RequestDebugState.ReadFrom(reader)); default: throw new System.Exception("Unexpected tag value"); } }
public static new RequestDebugState ReadFrom(System.IO.BinaryReader reader) { var result = new RequestDebugState(); return(result); }