1 write to ConformanceMode
System.Formats.Cbor (1)
System\Formats\Cbor\Reader\CborReader.cs (1)
61ConformanceMode = conformanceMode;
38 references to ConformanceMode
System.Formats.Cbor (38)
System\Formats\Cbor\Reader\CborReader.Array.cs (2)
22if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 24throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.cs (1)
86/// <see cref="ConformanceMode"/> and <see cref="AllowMultipleRootLevelValues"/> are unchanged.
System\Formats\Cbor\Reader\CborReader.Integer.cs (2)
221if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresCanonicalIntegerRepresentation(ConformanceMode)) 223throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_NonCanonicalIntegerRepresentation, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.Map.cs (9)
37if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 39throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_RequiresDefiniteLengthItems, ConformanceMode)); 110if (CborConformanceModeHelpers.RequiresSortedKeys(ConformanceMode)) 114else if (CborConformanceModeHelpers.RequiresUniqueKeys(ConformanceMode)) 142int cmp = CborConformanceModeHelpers.CompareKeyEncodings(previousKeyEncoding, currentKeyEncoding, ConformanceMode); 146throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_KeysNotInSortedOrder, ConformanceMode)); 148else if (cmp == 0 && CborConformanceModeHelpers.RequiresUniqueKeys(ConformanceMode)) 151throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode)); 167throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.Simple.cs (2)
173CborConformanceModeHelpers.RequireCanonicalSimpleValueEncodings(ConformanceMode)) 175throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_InvalidSimpleValueEncoding, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.String.cs (20)
33if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 35throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 68if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 70throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 141if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 143throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 178if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 180throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 190Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 224if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 226throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 236Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 279if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresUtf8Validation(ConformanceMode)) 281Encoding encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 308if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 310throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 379Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 415Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 495CborConformanceModeHelpers.RequiresUtf8Validation(ConformanceMode)) 498Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode);
System\Formats\Cbor\Reader\CborReader.Tag.cs (2)
287if (_isConformanceModeCheckEnabled && !CborConformanceModeHelpers.AllowsTags(ConformanceMode)) 289throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_TagsNotSupported, ConformanceMode));