17 references to TryDecode
System.Formats.Asn1 (2)
System\Formats\Asn1\Asn1Tag.cs (1)
255if (TryDecode(source, out Asn1Tag tag, out bytesConsumed))
System\Formats\Asn1\AsnDecoder.cs (1)
73if (Asn1Tag.TryDecode(source, out Asn1Tag localTag, out int tagLength) &&
System.Security.Cryptography (6)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
71if (!Asn1Tag.TryDecode(UniversalString.Value.Span, out Asn1Tag validateTag, out _) ||
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
88if (!Asn1Tag.TryDecode(X400Address.Value.Span, out Asn1Tag validateTag, out _) ||
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
32if (!Asn1Tag.TryDecode(Subject.Span, out Asn1Tag validateTag, out _) ||
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
64if (!Asn1Tag.TryDecode(NameRelativeToCRLIssuer.Value.Span, out Asn1Tag validateTag, out _) ||
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (2)
73if (!Asn1Tag.TryDecode(Issuer.Span, out Asn1Tag validateTag, out _) || 91if (!Asn1Tag.TryDecode(Subject.Span, out Asn1Tag validateTag, out _) ||
System.Security.Cryptography.Pkcs (9)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
71if (!Asn1Tag.TryDecode(UniversalString.Value.Span, out Asn1Tag validateTag, out _) ||
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
88if (!Asn1Tag.TryDecode(X400Address.Value.Span, out Asn1Tag validateTag, out _) ||
System\Security\Cryptography\Pkcs\Asn1\CertificateChoiceAsn.xml.cs (4)
53if (!Asn1Tag.TryDecode(Certificate.Value.Span, out Asn1Tag validateTag, out _) || 78if (!Asn1Tag.TryDecode(ExtendedCertificate.Value.Span, out Asn1Tag validateTag, out _) || 103if (!Asn1Tag.TryDecode(AttributeCertificateV1.Value.Span, out Asn1Tag validateTag, out _) || 128if (!Asn1Tag.TryDecode(AttributeCertificateV2.Value.Span, out Asn1Tag validateTag, out _) ||
System\Security\Cryptography\Pkcs\Asn1\IssuerAndSerialNumberAsn.xml.cs (1)
28if (!Asn1Tag.TryDecode(Issuer.Span, out Asn1Tag validateTag, out _) ||
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (1)
33if (!Asn1Tag.TryDecode(StatusString.Value.Span, out Asn1Tag validateTag, out _) ||
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (1)
40if (!Asn1Tag.TryDecode(SignedAttributes.Value.Span, out Asn1Tag validateTag, out _) ||