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