1 write to ConformanceMode
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.cs (1)
90ConformanceMode = conformanceMode;
21 references to ConformanceMode
System.Formats.Cbor (21)
System\Formats\Cbor\Writer\CborWriter.Array.cs (2)
59if (!ConvertIndefiniteLengthEncodings && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 61throw new InvalidOperationException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
System\Formats\Cbor\Writer\CborWriter.cs (1)
133ValidateEncoding(encodedValue, ConformanceMode);
System\Formats\Cbor\Writer\CborWriter.Map.cs (6)
78if (!ConvertIndefiniteLengthEncodings && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 80throw new InvalidOperationException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 97if (CborConformanceModeHelpers.RequiresUniqueKeys(ConformanceMode)) 109throw new InvalidOperationException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode)); 121if (CborConformanceModeHelpers.RequiresSortedKeys(ConformanceMode)) 292return CborConformanceModeHelpers.CompareKeyEncodings(GetKeyEncoding(in x), GetKeyEncoding(in y), _writer.ConformanceMode);
System\Formats\Cbor\Writer\CborWriter.Simple.cs (4)
25if (!CborConformanceModeHelpers.RequiresPreservingFloatPrecision(ConformanceMode) && 45if (!CborConformanceModeHelpers.RequiresPreservingFloatPrecision(ConformanceMode) && 119CborConformanceModeHelpers.RequireCanonicalSimpleValueEncodings(ConformanceMode)) 121throw new ArgumentOutOfRangeException(SR.Format(SR.Cbor_ConformanceMode_InvalidSimpleValueEncoding, ConformanceMode));
System\Formats\Cbor\Writer\CborWriter.Simple.netcoreapp.cs (1)
24if (Half.IsNaN(value) && !CborConformanceModeHelpers.RequiresPreservingFloatPrecision(ConformanceMode))
System\Formats\Cbor\Writer\CborWriter.String.cs (5)
74if (!ConvertIndefiniteLengthEncodings && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 76throw new InvalidOperationException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 129Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(ConformanceMode); 171if (!ConvertIndefiniteLengthEncodings && CborConformanceModeHelpers.RequiresDefiniteLengthItems(ConformanceMode)) 173throw new InvalidOperationException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
System\Formats\Cbor\Writer\CborWriter.Tag.cs (2)
22if (!CborConformanceModeHelpers.AllowsTags(ConformanceMode)) 24throw new InvalidOperationException(SR.Format(SR.Cbor_ConformanceMode_TagsNotSupported, ConformanceMode));