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)
57public bool IsWriteCompleted => _currentMajorType is null && _itemsWritten > 0; 260type: _currentMajorType, 288if (typeToPop != _currentMajorType) 290if (_currentMajorType.HasValue) 292throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)_currentMajorType)); 342if (_currentMajorType == CborMajorType.Map) 365switch (_currentMajorType) 373if (initialByte.MajorType != _currentMajorType ||
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
44if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.ByteString) 138if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.TextString)