Matches() публичный Метод

public Matches ( Attribute attribute ) : bool
attribute System.Attribute
Результат bool
Пример #1
0
        public virtual void AddAttribute( Attribute a )
        {
            AttributeCollection ac = new AttributeCollection( Attributes );
            if( ! ac.Matches( a ) )
            {
                ArrayList al = new ArrayList();
                if( Attributes != null )
                    al.AddRange( Attributes );
                al.Add( a );

                Attributes = (Attribute[]) al.ToArray( typeof(Attribute) );
            }
        }