Beispiel #1
0
		/// <summary>
		/// Determines whether an element is in the <see cref="T:System.Collections.Generic.List`1"/>.
		/// </summary>
		/// <returns>
		/// true if <paramref name="item"/> is found in the <see cref="T:System.Collections.Generic.List`1"/>; otherwise, false.
		/// </returns>
		/// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.List`1"/>. The value can be null for reference types.</param>
		public bool Contains(PluginConfig item)
		{
			return _plugins.Contains(item);
		}
Beispiel #2
0
		/// <summary>
		/// Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.List`1"/>.
		/// </summary>
		/// <returns>
		/// true if <paramref name="item"/> is successfully removed; otherwise, false.  This method also returns false if <paramref name="item"/> was not found in the <see cref="T:System.Collections.Generic.List`1"/>.
		/// </returns>
		/// <param name="item">The object to remove from the <see cref="T:System.Collections.Generic.List`1"/>. The value can be null for reference types.</param>
		public bool Remove(PluginConfig item)
		{
			return _plugins.Remove(item);
		}
Beispiel #3
0
		/// <summary>
		/// Adds an object to the end of the <see cref="T:System.Collections.Generic.List`1"/>.
		/// </summary>
		/// <param name="item">The object to be added to the end of the <see cref="T:System.Collections.Generic.List`1"/>. The value can be null for reference types.</param>
		public void Add(PluginConfig item)
		{
			_plugins.Add(item);
		}