public static short ReadInt16(this AsnReader reader, Asn1Tag tag) { if (reader.TryReadInt16(tag, out short value)) { return(value); } throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); }