public static Byte LengthByteCount(this ArraySizeTypeEnum sizeType) { if (sizeType == ArraySizeTypeEnum.BasedOnCommand) { return(0); } return((Byte)sizeType); }
public VariableLengthArrayType(ArraySizeTypeEnum type) : base(type) { if (type == ArraySizeTypeEnum.Fixed) { throw new InvalidOperationException("This class does not accept Fixed array types"); } this.lengthByteCount = type.LengthByteCount(); }
protected BinaryFormatArrayType(ArraySizeTypeEnum type) { this.type = type; }