BraintreeEncryption.Library.BouncyCastle.Asn1.Asn1Object.FromStream C# (CSharp) Method

FromStream() public static method

Read a base ASN.1 object from a stream.
If there is a problem parsing the data.
public static FromStream ( Stream inStr ) : Asn1Object
inStr Stream The stream to parse.
return Asn1Object
        public static Asn1Object FromStream(
			Stream inStr)
        {
            try
            {
                return new Asn1InputStream(inStr).ReadObject();
            }
            catch (InvalidCastException)
            {
                throw new IOException("cannot recognise object in stream");
            }
        }