Org.BouncyCastle.Asn1.Cms.AttributeTable.this C# (CSharp) Method

this() public method

Return the first attribute matching the given OBJECT IDENTIFIER
public this ( DerObjectIdentifier oid ) : Attribute
oid Org.BouncyCastle.Asn1.DerObjectIdentifier
return Attribute
		public Attribute this[DerObjectIdentifier oid]
		{
			get
			{
				object obj = attributes[oid];

				if (obj is IList)
				{
					return (Attribute)((IList)obj)[0];
				}

				return (Attribute) obj;
			}
		}