Ejemplo n.º 1
0
 public static Byte LengthByteCount(this ArraySizeTypeEnum sizeType)
 {
     if (sizeType == ArraySizeTypeEnum.BasedOnCommand)
     {
         return(0);
     }
     return((Byte)sizeType);
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 protected BinaryFormatArrayType(ArraySizeTypeEnum type)
 {
     this.type = type;
 }