/// <summary> /// Determines whether the specified <see cref="Object"/> is equal to the current <see cref="NameAttribute"/>. /// </summary> /// <param name="obj">The Object to compare with the current Object. </param> /// <returns><b>true</b> if the specified Object is equal to the current NameAttribute; otherwise, <b>false</b>.</returns> public override bool Equals(object obj) { try { NameAttribute o = (NameAttribute)obj; return((o.ObjectID == this.ObjectID) && (o.Value == this.Value)); } catch { return(false); } }
/// <summary> /// Removes the first occurrence of a specific element from the list. /// </summary> /// <param name="value">The <see cref="NameAttribute"/> to remove from the list.</param> public void Remove(NameAttribute value) { m_List.Remove(value); }
/// <summary> /// Searches for the specified Object and returns the zero-based index of the first occurrence within the entire list. /// </summary> /// <param name="value">The <see cref="NameAttribute"/> to locate in the list.</param> /// <returns>The zero-based index of the first occurrence of value within the entire list, if found; otherwise, -1.</returns> public int IndexOf(NameAttribute value) { return m_List.IndexOf(value); }
/// <summary> /// Inserts an element into the list at the specified index. /// </summary> /// <param name="index">The zero-based index at which value should be inserted.</param> /// <param name="value">The <see cref="NameAttribute"/> to insert.</param> public void Insert(int index, NameAttribute value) { m_List.Insert(index, value); }
/// <summary> /// Adds a <see cref="NameAttribute"/> to the end of the list. /// </summary> /// <param name="attribute">The NameAttribute to be added to the end of the list. </param> /// <returns>The index at which the value has been added.</returns> public int Add(NameAttribute attribute) { return m_List.Add(attribute); }
/// <summary> /// Determines whether an element is in the list. /// </summary> /// <param name="value">The <see cref="NameAttribute"/> to locate in the list.</param> /// <returns><b>true</b> if item is found in the list; otherwise, <b>false</b>.</returns> public bool Contains(NameAttribute value) { return m_List.Contains(value); }
/// <summary> /// Removes the first occurrence of a specific element from the list. /// </summary> /// <param name="value">The <see cref="NameAttribute"/> to remove from the list.</param> public void Remove(NameAttribute value) { m_List.Remove(value); }
/// <summary> /// Inserts an element into the list at the specified index. /// </summary> /// <param name="index">The zero-based index at which value should be inserted.</param> /// <param name="value">The <see cref="NameAttribute"/> to insert.</param> public void Insert(int index, NameAttribute value) { m_List.Insert(index, value); }
/// <summary> /// Searches for the specified Object and returns the zero-based index of the first occurrence within the entire list. /// </summary> /// <param name="value">The <see cref="NameAttribute"/> to locate in the list.</param> /// <returns>The zero-based index of the first occurrence of value within the entire list, if found; otherwise, -1.</returns> public int IndexOf(NameAttribute value) { return(m_List.IndexOf(value)); }
/// <summary> /// Determines whether an element is in the list. /// </summary> /// <param name="value">The <see cref="NameAttribute"/> to locate in the list.</param> /// <returns><b>true</b> if item is found in the list; otherwise, <b>false</b>.</returns> public bool Contains(NameAttribute value) { return(m_List.Contains(value)); }
/// <summary> /// Adds a <see cref="NameAttribute"/> to the end of the list. /// </summary> /// <param name="attribute">The NameAttribute to be added to the end of the list. </param> /// <returns>The index at which the value has been added.</returns> public int Add(NameAttribute attribute) { return(m_List.Add(attribute)); }