Org.BouncyCastle.Asn1.DerInteger.GetInstance C# (CSharp) Méthode

GetInstance() public static méthode

public static GetInstance ( Asn1TaggedObject obj, bool isExplicit ) : DerInteger
obj Asn1TaggedObject
isExplicit bool
Résultat DerInteger
        public static DerInteger GetInstance(
            Asn1TaggedObject	obj,
            bool				isExplicit)
        {
            if (obj == null)
                throw new ArgumentNullException("obj");

			Asn1Object o = obj.GetObject();

			if (isExplicit || o is DerInteger)
			{
				return GetInstance(o);
			}

			return new DerInteger(Asn1OctetString.GetInstance(o).GetOctets());
        }

Same methods

DerInteger::GetInstance ( object obj ) : DerInteger