82 references to SR
System.Formats.Asn1 (82)
System\Formats\Asn1\Asn1Tag.cs (2)
260
throw new AsnContentException(
SR
.ContentException_InvalidTag);
369
throw new ArgumentException(
SR
.Argument_DestinationTooShort, nameof(destination));
System\Formats\Asn1\AsnContentException.cs (3)
19
: base(
SR
.ContentException_DefaultMessage)
30
: base(message ??
SR
.ContentException_DefaultMessage)
45
: base(message ??
SR
.ContentException_DefaultMessage, inner)
System\Formats\Asn1\AsnDecoder.BitString.cs (7)
168
SR
.Argument_SourceOverlapsDestination,
342
throw new AsnContentException(
SR
.ContentException_InvalidUnderCer_TryBerOrDer);
386
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
489
throw new AsnContentException(
SR
.ContentException_InvalidUnderCer_TryBerOrDer);
541
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
606
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
653
throw new AsnContentException(
SR
.ContentException_InvalidUnderDer_TryBerOrCer);
System\Formats\Asn1\AsnDecoder.Boolean.cs (1)
76
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
System\Formats\Asn1\AsnDecoder.cs (12)
196
SR
.Format(
SR
.ContentException_PrimitiveEncodingRequired, tagNumber));
307
throw new AsnContentException(
SR
.ContentException_LengthTooBig);
310
throw new AsnContentException(
SR
.ContentException_LengthRuleSetConstraint);
538
return new AsnContentException(
SR
.ContentException_CerRequiresIndefiniteLength);
540
return new AsnContentException(
SR
.ContentException_LengthExceedsPayload);
651
throw new AsnContentException(
SR
.ContentException_LengthExceedsPayload);
670
throw new AsnContentException(
SR
.ContentException_LengthExceedsPayload);
713
SR
.Argument_UniversalValueIsFixed,
720
SR
.Format(
721
SR
.ContentException_WrongTag,
812
throw new AsnContentException(
SR
.ContentException_TooMuchData);
System\Formats\Asn1\AsnDecoder.Enumerated.cs (5)
209
SR
.Argument_EnumeratedValueRequiresNonFlagsEnum,
230
throw new AsnContentException(
SR
.ContentException_EnumeratedValueTooBig);
251
throw new AsnContentException(
SR
.ContentException_EnumeratedValueTooBig);
259
SR
.Format(
260
SR
.Argument_EnumeratedValueBackingTypeNotSupported,
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (5)
120
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
206
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
338
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
343
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
398
throw new AsnContentException(
SR
.ContentException_DefaultMessage, e);
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (4)
194
SR
.Argument_NamedBitListRequiresFlagsEnum,
214
SR
.Format(
SR
.ContentException_NamedBitListValueTooBig, flagsEnumType.Name));
245
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
System\Formats\Asn1\AsnDecoder.OctetString.cs (7)
72
SR
.Argument_SourceOverlapsDestination,
204
throw new AsnContentException(
SR
.ContentException_InvalidUnderDer_TryBerOrCer);
216
throw new AsnContentException(
SR
.ContentException_InvalidUnderCer_TryBerOrDer);
301
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
352
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
371
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
406
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
System\Formats\Asn1\AsnDecoder.Oid.cs (2)
133
throw new AsnContentException(
SR
.ContentException_OidTooBig);
312
throw new AsnContentException(
SR
.ContentException_OidTooBig);
System\Formats\Asn1\AsnDecoder.Sequence.cs (2)
71
SR
.Format(
72
SR
.ContentException_ConstructedEncodingRequired,
System\Formats\Asn1\AsnDecoder.SetOf.cs (3)
77
SR
.Format(
78
SR
.ContentException_ConstructedEncodingRequired,
116
throw new AsnContentException(
SR
.ContentException_SetOfNotSorted);
System\Formats\Asn1\AsnDecoder.Text.cs (5)
78
throw new ArgumentException(
SR
.Argument_Tag_NotCharacterString, nameof(expectedTag));
156
SR
.Argument_SourceOverlapsDestination,
171
throw new ArgumentException(
SR
.Argument_Tag_NotCharacterString, nameof(expectedTag));
424
throw new AsnContentException(
SR
.ContentException_DefaultMessage, e);
465
throw new AsnContentException(
SR
.ContentException_DefaultMessage, e);
System\Formats\Asn1\AsnDecoder.UtcTime.cs (2)
136
throw new AsnContentException(
SR
.ContentException_InvalidUnderCerOrDer_TryBer);
236
throw new AsnContentException(
SR
.ContentException_DefaultMessage, e);
System\Formats\Asn1\AsnWriter.BitString.cs (3)
53
SR
.Argument_UnusedBitCountRange);
59
throw new ArgumentException(
SR
.Argument_UnusedBitCountMustBeZero, nameof(unusedBitCount));
71
throw new ArgumentException(
SR
.Argument_UnusedBitWasSet, nameof(unusedBitCount));
System\Formats\Asn1\AsnWriter.cs (6)
71
throw new ArgumentOutOfRangeException(nameof(initialCapacity),
SR
.ArgumentOutOfRange_NeedNonNegNum);
87
throw new InvalidOperationException(
SR
.AsnWriter_ModifyingWhileEncoding);
116
throw new InvalidOperationException(
SR
.AsnWriter_EncodeUnbalancedStack);
140
throw new InvalidOperationException(
SR
.AsnWriter_EncodeUnbalancedStack);
178
throw new ArgumentException(
SR
.Argument_DestinationTooShort, nameof(destination));
199
throw new InvalidOperationException(
SR
.AsnWriter_EncodeUnbalancedStack);
System\Formats\Asn1\AsnWriter.Enumerated.cs (1)
82
SR
.Argument_EnumeratedValueRequiresNonFlagsEnum,
System\Formats\Asn1\AsnWriter.Integer.cs (4)
223
throw new ArgumentException(
SR
.Argument_IntegerCannotBeEmpty, nameof(value));
229
throw new ArgumentException(
SR
.Argument_IntegerRedundantByte, nameof(value));
254
throw new ArgumentException(
SR
.Argument_IntegerCannotBeEmpty, nameof(value));
266
throw new ArgumentException(
SR
.Argument_IntegerRedundantByte, nameof(value));
System\Formats\Asn1\AsnWriter.NamedBitList.cs (1)
116
SR
.Argument_NamedBitListRequiresFlagsEnum,
System\Formats\Asn1\AsnWriter.Oid.cs (7)
85
throw new ArgumentException(
SR
.Argument_InvalidOidValue, nameof(oidValue));
87
throw new ArgumentException(
SR
.Argument_InvalidOidValue, nameof(oidValue));
102
_ => throw new ArgumentException(
SR
.Argument_InvalidOidValue, nameof(oidValue)),
123
throw new ArgumentException(
SR
.Argument_InvalidOidValue, nameof(oidValue));
160
throw new ArgumentException(
SR
.Argument_InvalidOidValue, nameof(oidValue));
170
throw new ArgumentException(
SR
.Argument_InvalidOidValue, nameof(oidValue));
187
throw new ArgumentException(
SR
.Argument_InvalidOidValue, "oidValue");