3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Writer\CborWriter.cs (3)
112_currentMajorType = null; 276_currentMajorType = newMajorType; 331_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; 263type: _currentMajorType, 291if (typeToPop != _currentMajorType) 293if (_currentMajorType.HasValue) 295throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)_currentMajorType)); 345if (_currentMajorType == CborMajorType.Map) 368switch (_currentMajorType) 376if (initialByte.MajorType != _currentMajorType ||
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
47if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.ByteString) 144if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.TextString)