Mono.Security.X509.X509ExtensionCollection.IndexOf C# (CSharp) Method

IndexOf() public method

public IndexOf ( string oid ) : int
oid string
return int
		public int IndexOf (string oid) 
		{
			if (oid == null)
				throw new ArgumentNullException ("oid");

			for (int i=0; i < InnerList.Count; i++) {
				X509Extension ex = (X509Extension) InnerList [i];
				if (ex.Oid == oid)
					return i;
			}
			return -1;
		}

Same methods

X509ExtensionCollection::IndexOf ( Mono.Security.X509.X509Extension extension ) : int