Exemplo n.º 1
0
 /// <summary>
 /// Adds the given element to the collection
 /// </summary>
 /// <param name="item">The item to add</param>
 public override void Add(IModelElement item)
 {
     if ((this._parent.InnerReference_NamespaceReference == null))
     {
         IAbstractNamedReference innerReference_NamespaceReferenceCasted = item.As <IAbstractNamedReference>();
         if ((innerReference_NamespaceReferenceCasted != null))
         {
             this._parent.InnerReference_NamespaceReference = innerReference_NamespaceReferenceCasted;
             return;
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the given element to the collection
 /// </summary>
 /// <param name="item">The item to add</param>
 public override void Add(IModelElement item)
 {
     if ((this._parent.Id_Variable == null))
     {
         IAbstractNamedReference id_VariableCasted = item.As <IAbstractNamedReference>();
         if ((id_VariableCasted != null))
         {
             this._parent.Id_Variable = id_VariableCasted;
             return;
         }
     }
 }