3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Writer\CborWriter.cs (3)
112_currentMajorType = null; 277_currentMajorType = newMajorType; 332_currentMajorType = frame.MajorType;
10 references to _currentMajorType
System.Formats.Cbor (10)
System\Formats\Cbor\Writer\CborWriter.cs (8)
57public bool IsWriteCompleted => _currentMajorType is null && _itemsWritten > 0; 264type: _currentMajorType, 292if (typeToPop != _currentMajorType) 294if (_currentMajorType.HasValue) 296throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)_currentMajorType)); 346if (_currentMajorType == CborMajorType.Map) 369switch (_currentMajorType) 377if (initialByte.MajorType != _currentMajorType ||
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
44if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.ByteString) 138if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.TextString)