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