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