/**
* return an Integer from a tagged object.
*
* @param obj the tagged object holding the object we want
* @param explicitly true if the object is meant to be explicitly
* tagged false otherwise.
* @exception ArgumentException if the tagged object cannot
* be converted.
*/
public static DerInteger GetInstance(
Asn1TaggedObject obj,
bool explicitly)
{
if (obj == null)
throw new ArgumentNullException("obj");
return GetInstance(obj.GetObject());
}