/// <inheritdoc /> public SubCommand60Attribute(SubCommand60OperationCode opCode) : base((int)opCode) { if (!Enum.IsDefined(typeof(SubCommand60OperationCode), opCode)) { throw new InvalidEnumArgumentException(nameof(opCode), (int)opCode, typeof(SubCommand60OperationCode)); } }
//Serializer ctor protected BaseSubCommand60(SubCommand60OperationCode commandOperationCode) { //This is in a serialization hotpath so we don't verify the enum with //and throw because it depends on slow reflection. CommandOperationCode = commandOperationCode; }