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