/// <summary> /// Adds an instance of type IBehaviorModel to the end of this BehaviorModelCollection. If null the item is not added /// </summary> /// <param name="value"> /// The IBehaviorModel to be added to the end of this BehaviorModelCollection. /// </param> public virtual void Add(IBehaviorModel value) { if (value != null) { this.List.Add(value); } }
/// <summary> /// Inserts an element into the BehaviorModelCollection at the specified index /// </summary> /// <param name="index"> /// The index at which the IBehaviorModel is to be inserted. /// </param> /// <param name="value"> /// The IBehaviorModel to insert. /// </param> public virtual void Insert(int index, IBehaviorModel value) { if (value != null) { this.List.Insert(index, value); } }
/// <summary> /// Determines whether a specfic IBehaviorModel value is in this BehaviorModelCollection. /// </summary> /// <param name="value"> /// The IBehaviorModel value to locate in this BehaviorModelCollection. /// </param> /// <returns> /// true if value is found in this BehaviorModelCollection; /// false otherwise. /// </returns> public virtual bool Contains(IBehaviorModel value) { return(this.List.Contains(value)); }
/// <summary> /// Removes the first occurrence of a specific IBehaviorModel from this BehaviorModelCollection. /// </summary> /// <param name="value"> /// The IBehaviorModel value to remove from this BehaviorModelCollection. /// </param> public virtual void Remove(IBehaviorModel value) { this.List.Remove(value); }
/// <summary> /// Return the zero-based index of the first occurrence of a specific value /// in this BehaviorModelCollection /// </summary> /// <param name="value"> /// The IBehaviorModel value to locate in the BehaviorModelCollection. /// </param> /// <returns> /// The zero-based index of the first occurrence of the _ELEMENT value if found; /// -1 otherwise. /// </returns> public virtual int IndexOf(IBehaviorModel value) { return(this.List.IndexOf(value)); }