示例#1
0
		/// <summary>
		/// Adds the elements of an array to the end of this TopicNameCollection.
		/// </summary>
		/// <param name="items">
		/// The array whose elements are to be added to the end of this TopicNameCollection.
		/// </param>
		public virtual void AddRange(TopicName[] items)
		{
			foreach (TopicName item in items)
			{
				this.List.Add(item);
			}
		}
示例#2
0
		/// <summary>
		/// Adds an instance of type TopicName to the end of this TopicNameCollection.
		/// </summary>
		/// <param name="rawValue">
		/// The TopicName to be added to the end of this TopicNameCollection.
		/// </param>
		public virtual void Add(TopicName value)
		{
			this.List.Add(value);
		}
示例#3
0
		/// <summary>
		/// Initializes a new instance of the TopicNameCollection class, containing elements
		/// copied from an array.
		/// </summary>
		/// <param name="items">
		/// The array whose elements are to be added to the new TopicNameCollection.
		/// </param>
		public TopicNameCollection(TopicName[] items)
		{
			this.AddRange(items);
		}
示例#4
0
		/// <summary>
		/// Removes the first occurrence of a specific TopicName from this TopicNameCollection.
		/// </summary>
		/// <param name="rawValue">
		/// The TopicName rawValue to remove from this TopicNameCollection.
		/// </param>
		public virtual void Remove(TopicName value)
		{
			this.List.Remove(value);
		}
示例#5
0
		/// <summary>
		/// Inserts an element into the TopicNameCollection at the specified index
		/// </summary>
		/// <param name="index">
		/// The index at which the TopicName is to be inserted.
		/// </param>
		/// <param name="rawValue">
		/// The TopicName to insert.
		/// </param>
		public virtual void Insert(int index, TopicName value)
		{
			this.List.Insert(index, value);
		}
示例#6
0
		/// <summary>
		/// Return the zero-based index of the first occurrence of a specific rawValue
		/// in this TopicNameCollection
		/// </summary>
		/// <param name="rawValue">
		/// The TopicName rawValue to locate in the TopicNameCollection.
		/// </param>
		/// <returns>
		/// The zero-based index of the first occurrence of the _ELEMENT rawValue if found;
		/// -1 otherwise.
		/// </returns>
		public virtual int IndexOf(TopicName value)
		{
			return this.List.IndexOf(value);
		}
示例#7
0
		/// <summary>
		/// Determines whether a specfic TopicName rawValue is in this TopicNameCollection.
		/// </summary>
		/// <param name="rawValue">
		/// The TopicName rawValue to locate in this TopicNameCollection.
		/// </param>
		/// <returns>
		/// true if rawValue is found in this TopicNameCollection;
		/// false otherwise.
		/// </returns>
		public virtual bool Contains(TopicName value)
		{
			return this.List.Contains(value);
		}