15 references to MajorType
System.Formats.Cbor (15)
System\Formats\Cbor\CborConformanceLevel.cs (2)
238int leftMt = (int)new CborInitialByte(left[0]).MajorType; 239int rightMt = (int)new CborInitialByte(right[0]).MajorType;
System\Formats\Cbor\Reader\CborReader.cs (4)
267nextByte.MajorType == _currentMajorType.Value && 273throw new CborContentException(SR.Format(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem, (int)nextByte.MajorType)); 283if (expectedType != result.MajorType) 285throw 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 (3)
124if (initialByte.MajorType != _currentMajorType.Value) 139switch (initialByte.MajorType) 228switch (initialByte.MajorType)
System\Formats\Cbor\Reader\CborReader.String.cs (1)
485if (header.InitialByte != CborInitialByte.IndefiniteLengthBreakByte && header.MajorType != expectedType)
System\Formats\Cbor\Writer\CborWriter.cs (1)
428if (initialByte.MajorType != _currentMajorType ||