Atl2NmfSBenchmark/Metamodels/Make.cs
/// <summary>
/// Adds the given element to the collection
/// </summary>
/// <param name="item">The item to add</param>
Adds the given element to the collection
Adds the given element to the collection
public override void Add(IModelElement item)
            {
                if ((this._parent.Comment == null))
                {
                    IComment commentCasted = item.As<IComment>();
                    if ((commentCasted != null))
                    {
                        this._parent.Comment = commentCasted;
                        return;
                    }
                }
                IElement elementsCasted = item.As<IElement>();
                if ((elementsCasted != null))
                {
                    this._parent.Elements.Add(elementsCasted);
                }
            }
public override void Add ( IModelElement item ) { if ( ( this . _parent . Comment == null ) ) { IComment commentCasted = item . As < IComment > ( ) ; if ( ( commentCasted != null ) ) { this . _parent . Comment = commentCasted ; return ; } } IElement elementsCasted = item . As < IElement > ( ) ; if ( ( elementsCasted != null ) ) { this . _parent . Elements . Add ( elementsCasted ) ; } }
Adds the given element to the collection
Adds the given element to the collection
item
IModelElement
The item to add
The item to add