Boo.Lang.Compiler.Ast.AttributeCollection.Get C# (CSharp) Method

Get() public method

public Get ( string attributeName ) : Boo.Lang.Compiler.Ast.Attribute[]
attributeName string
return Boo.Lang.Compiler.Ast.Attribute[]
        public Boo.Lang.Compiler.Ast.Attribute[] Get(string attributeName)
        {
            ArrayList attributes = new ArrayList();
            foreach (Boo.Lang.Compiler.Ast.Attribute attribute in this)
            {
                if (0 == string.Compare(attributeName, attribute.Name, true))
                {
                    attributes.Add(attribute);
                }
            }
            return (Boo.Lang.Compiler.Ast.Attribute[])attributes.ToArray(typeof(Boo.Lang.Compiler.Ast.Attribute));
        }