public static new SetAutoFlush ReadFrom(System.IO.BinaryReader reader) { var result = new SetAutoFlush(); result.Enable = reader.ReadBoolean(); return(result); }
public static DebugCommand ReadFrom(System.IO.BinaryReader reader) { switch (reader.ReadInt32()) { case Add.TAG: return(Add.ReadFrom(reader)); case Clear.TAG: return(Clear.ReadFrom(reader)); case SetAutoFlush.TAG: return(SetAutoFlush.ReadFrom(reader)); case Flush.TAG: return(Flush.ReadFrom(reader)); default: throw new System.Exception("Unexpected tag value"); } }