14 references to MajorType
System.Formats.Cbor (14)
System\Formats\Cbor\CborConformanceLevel.cs (2)
253int leftMt = (int)new CborInitialByte(left[0]).MajorType; 254int rightMt = (int)new CborInitialByte(right[0]).MajorType;
System\Formats\Cbor\Reader\CborReader.cs (4)
140nextByte.MajorType == _currentMajorType.Value && 146throw new CborContentException(SR.Format(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem, (int)nextByte.MajorType)); 156if (expectedType != result.MajorType) 158throw new InvalidOperationException(SR.Format(SR.Cbor_Reader_MajorTypeMismatch, (int)result.MajorType));
System\Formats\Cbor\Reader\CborReader.Integer.cs (4)
108switch (header.MajorType) 118throw new InvalidOperationException(SR.Format(SR.Cbor_Reader_MajorTypeMismatch, (int)header.MajorType)); 127switch (header.MajorType) 138throw new InvalidOperationException(SR.Format(SR.Cbor_Reader_MajorTypeMismatch, (int)header.MajorType));
System\Formats\Cbor\Reader\CborReader.PeekState.cs (2)
101if (initialByte.MajorType != _currentMajorType.Value) 110switch (initialByte.MajorType)
System\Formats\Cbor\Reader\CborReader.String.cs (1)
473if (header.InitialByte != CborInitialByte.IndefiniteLengthBreakByte && header.MajorType != expectedType)
System\Formats\Cbor\Writer\CborWriter.cs (1)
376if (initialByte.MajorType != _currentMajorType ||