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)
            {
                IDependency dependenciesCasted = item.As<IDependency>();
                if ((dependenciesCasted != null))
                {
                    this._parent.Dependencies.Add(dependenciesCasted);
                }
                IShellLine shellLinesCasted = item.As<IShellLine>();
                if ((shellLinesCasted != null))
                {
                    this._parent.ShellLines.Add(shellLinesCasted);
                }
            }
public override void Add ( IModelElement item ) { IDependency dependenciesCasted = item . As < IDependency > ( ) ; if ( ( dependenciesCasted != null ) ) { this . _parent . Dependencies . Add ( dependenciesCasted ) ; } IShellLine shellLinesCasted = item . As < IShellLine > ( ) ; if ( ( shellLinesCasted != null ) ) { this . _parent . ShellLines . Add ( shellLinesCasted ) ; } }
Adds the given element to the collection
Adds the given element to the collection
item
IModelElement
The item to add
The item to add