Example #1
0
 /// <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);
     }
 }
Example #2
0
		/// <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);
		}
Example #3
0
		/// <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);
		}
Example #4
0
		/// <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);
		}
Example #5
0
		/// <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);
		}
Example #6
0
		/// <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);
		}
Example #7
0
 /// <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);
 }
Example #8
0
 /// <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);
 }
Example #9
0
 /// <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));
 }
Example #10
0
 /// <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));
 }
Example #11
0
 /// <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));
 }