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