3 writes to _currentMajorType
System.Formats.Cbor (3)
System\Formats\Cbor\Writer\CborWriter.cs (3)
149_currentMajorType = null; 328_currentMajorType = newMajorType; 383_currentMajorType = frame.MajorType;
10 references to _currentMajorType
System.Formats.Cbor (10)
System\Formats\Cbor\Writer\CborWriter.cs (8)
62public bool IsWriteCompleted => _currentMajorType is null && _itemsWritten > 0; 315type: _currentMajorType, 343if (typeToPop != _currentMajorType) 345if (_currentMajorType.HasValue) 347throw new InvalidOperationException(SR.Format(SR.Cbor_PopMajorTypeMismatch, (int)_currentMajorType)); 397if (_currentMajorType == CborMajorType.Map) 420switch (_currentMajorType) 428if (initialByte.MajorType != _currentMajorType ||
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
44if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.ByteString) 140if (ConvertIndefiniteLengthEncodings && _currentMajorType == CborMajorType.TextString)