src/Microsoft/Windows/ComponentObjectModel/_Library/ComponentAttributeCollection.cs
/// <summary>
/// Adds an attribute to the collection.
/// </summary>
/// <param name="attribute">The attribute to add.</param>
Adds an attribute to the collection.
Adds an attribute to the collection .
public void Add( Attribute attribute ) {
            string name = attribute.GetType().FullName;
            if ( false == _attributes.TryGetValue( name, out List<Attribute> list ) ) {
                list = new List<Attribute>();
                _attributes.Add( name, list );
            }
            list.Add( attribute );
        }
public void Add ( Attribute attribute ) { string name = attribute . GetType ( ) . FullName ; if ( false == _attributes . TryGetValue ( name , out List < Attribute > list ) ) { list = new List < Attribute > ( ) ; _attributes . Add ( name , list ) ; } list . Add ( attribute ) ; }
Adds an attribute to the collection.
Adds an attribute to the collection .
attribute
Attribute
The attribute to add.
The attribute to add .