3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Writer\CborWriter.cs (3)
112
_currentMajorType
= null;
273
_currentMajorType
= newMajorType;
328
_currentMajorType
= frame.MajorType;
10 references to _currentMajorType
System.Formats.Cbor (10)
System\Formats\Cbor\Writer\CborWriter.cs (8)
57
public bool IsWriteCompleted =>
_currentMajorType
is null && _itemsWritten > 0;
260
type:
_currentMajorType
,
288
if (typeToPop !=
_currentMajorType
)
290
if (
_currentMajorType
.HasValue)
292
throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)
_currentMajorType
));
342
if (
_currentMajorType
== CborMajorType.Map)
365
switch (
_currentMajorType
)
373
if (initialByte.MajorType !=
_currentMajorType
||
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
44
if (ConvertIndefiniteLengthEncodings &&
_currentMajorType
== CborMajorType.ByteString)
138
if (ConvertIndefiniteLengthEncodings &&
_currentMajorType
== CborMajorType.TextString)