2 writes to ConformanceMode
System.Formats.Cbor (2)
System\Formats\Cbor\Reader\CborReader.cs (2)
75
ConformanceMode
= conformanceMode;
92
ConformanceMode
= conformanceMode;
38 references to ConformanceMode
System.Formats.Cbor (38)
System\Formats\Cbor\Reader\CborReader.Array.cs (2)
23
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
25
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
System\Formats\Cbor\Reader\CborReader.cs (1)
118
/// <see cref="
ConformanceMode
"/> and <see cref="AllowMultipleRootLevelValues"/> are unchanged.
System\Formats\Cbor\Reader\CborReader.Integer.cs (2)
221
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresCanonicalIntegerRepresentation(
ConformanceMode
))
223
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_NonCanonicalIntegerRepresentation,
ConformanceMode
));
System\Formats\Cbor\Reader\CborReader.Map.cs (9)
38
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
40
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_RequiresDefiniteLengthItems,
ConformanceMode
));
111
if (CborConformanceModeHelpers.RequiresSortedKeys(
ConformanceMode
))
115
else if (CborConformanceModeHelpers.RequiresUniqueKeys(
ConformanceMode
))
143
int cmp = CborConformanceModeHelpers.CompareKeyEncodings(previousKeyEncoding, currentKeyEncoding,
ConformanceMode
);
147
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_KeysNotInSortedOrder,
ConformanceMode
));
149
else if (cmp == 0 && CborConformanceModeHelpers.RequiresUniqueKeys(
ConformanceMode
))
152
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys,
ConformanceMode
));
168
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys,
ConformanceMode
));
System\Formats\Cbor\Reader\CborReader.Simple.cs (2)
173
CborConformanceModeHelpers.RequireCanonicalSimpleValueEncodings(
ConformanceMode
))
175
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_InvalidSimpleValueEncoding,
ConformanceMode
));
System\Formats\Cbor\Reader\CborReader.String.cs (20)
33
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
35
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
68
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
70
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
142
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
144
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
179
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
181
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
191
Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(
ConformanceMode
);
225
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
227
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
237
Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(
ConformanceMode
);
280
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresUtf8Validation(
ConformanceMode
))
282
Encoding encoding = CborConformanceModeHelpers.GetUtf8Encoding(
ConformanceMode
);
310
if (_isConformanceModeCheckEnabled && CborConformanceModeHelpers.RequiresDefiniteLengthItems(
ConformanceMode
))
312
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported,
ConformanceMode
));
381
Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(
ConformanceMode
);
417
Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(
ConformanceMode
);
499
CborConformanceModeHelpers.RequiresUtf8Validation(
ConformanceMode
))
502
Encoding utf8Encoding = CborConformanceModeHelpers.GetUtf8Encoding(
ConformanceMode
);
System\Formats\Cbor\Reader\CborReader.Tag.cs (2)
287
if (_isConformanceModeCheckEnabled && !CborConformanceModeHelpers.AllowsTags(
ConformanceMode
))
289
throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_TagsNotSupported,
ConformanceMode
));