C# Class Hd.QueryExtensions.SqlConstantCollection

Inheritance: System.Collections.CollectionBase
Show file Open project: TargetProcess/Tp.HelpDesk Class Usage Examples

Public Methods

Method Description
Add ( SqlConstant value ) : void

Adds an instance of type SqlConstant to the end of this SqlConstantCollection.

Add ( object val ) : void

Adds a value

This method automatically determins the type of the value and creates the appropriate SqlConstant object.

AddRange ( SqlConstant items ) : void

Adds the elements of an array to the end of this SqlConstantCollection.

AddRange ( SqlConstantCollection items ) : void

Adds the elements of another SqlConstantCollection to the end of this SqlConstantCollection.

Contains ( SqlConstant value ) : bool

Determines whether a specfic SqlConstant value is in this SqlConstantCollection.

FromList ( IList values ) : SqlConstantCollection

Creates a SqlConstantCollection from a list of values.

The type of SqlConstant items in the collection is determined automatically. See Add method for more info.

GetEnumerator ( ) : SqlConstantCollection.Enumerator

Returns an enumerator that can iterate through the elements of this SqlConstantCollection.

IndexOf ( SqlConstant value ) : int

Return the zero-based index of the first occurrence of a specific value in this SqlConstantCollection

Insert ( int index, SqlConstant value ) : void

Inserts an element into the SqlConstantCollection at the specified index

Remove ( SqlConstant value ) : void

Removes the first occurrence of a specific SqlConstant from this SqlConstantCollection.

SqlConstantCollection ( ) : System

Initializes a new empty instance of the SqlConstantCollection class.

SqlConstantCollection ( SqlConstant items ) : System

Initializes a new instance of the SqlConstantCollection class, containing elements copied from an array.

SqlConstantCollection ( SqlConstantCollection items ) : System

Initializes a new instance of the SqlConstantCollection class, containing elements copied from another instance of SqlConstantCollection

SqlConstantCollection ( int capacity ) : System

Initializes a new empty instance of the SqlConstantCollection class with the specified initial capacity

this ( int index ) : SqlConstant

Gets or sets the SqlConstant at the given index in this SqlConstantCollection.

Method Details

Add() public method

Adds an instance of type SqlConstant to the end of this SqlConstantCollection.
public Add ( SqlConstant value ) : void
value SqlConstant /// The SqlConstant to be added to the end of this SqlConstantCollection. ///
return void

Add() public method

Adds a value
This method automatically determins the type of the value and creates the appropriate SqlConstant object.
public Add ( object val ) : void
val object The value which is to be added
return void

AddRange() public method

Adds the elements of an array to the end of this SqlConstantCollection.
public AddRange ( SqlConstant items ) : void
items SqlConstant /// The array whose elements are to be added to the end of this SqlConstantCollection. ///
return void

AddRange() public method

Adds the elements of another SqlConstantCollection to the end of this SqlConstantCollection.
public AddRange ( SqlConstantCollection items ) : void
items SqlConstantCollection /// The SqlConstantCollection whose elements are to be added to the end of this SqlConstantCollection. ///
return void

Contains() public method

Determines whether a specfic SqlConstant value is in this SqlConstantCollection.
public Contains ( SqlConstant value ) : bool
value SqlConstant /// The SqlConstant value to locate in this SqlConstantCollection. ///
return bool

FromList() public static method

Creates a SqlConstantCollection from a list of values.
The type of SqlConstant items in the collection is determined automatically. See Add method for more info.
public static FromList ( IList values ) : SqlConstantCollection
values IList
return SqlConstantCollection

GetEnumerator() public method

Returns an enumerator that can iterate through the elements of this SqlConstantCollection.
public GetEnumerator ( ) : SqlConstantCollection.Enumerator
return SqlConstantCollection.Enumerator

IndexOf() public method

Return the zero-based index of the first occurrence of a specific value in this SqlConstantCollection
public IndexOf ( SqlConstant value ) : int
value SqlConstant /// The SqlConstant value to locate in the SqlConstantCollection. ///
return int

Insert() public method

Inserts an element into the SqlConstantCollection at the specified index
public Insert ( int index, SqlConstant value ) : void
index int /// The index at which the SqlConstant is to be inserted. ///
value SqlConstant /// The SqlConstant to insert. ///
return void

Remove() public method

Removes the first occurrence of a specific SqlConstant from this SqlConstantCollection.
public Remove ( SqlConstant value ) : void
value SqlConstant /// The SqlConstant value to remove from this SqlConstantCollection. ///
return void

SqlConstantCollection() public method

Initializes a new empty instance of the SqlConstantCollection class.
public SqlConstantCollection ( ) : System
return System

SqlConstantCollection() public method

Initializes a new instance of the SqlConstantCollection class, containing elements copied from an array.
public SqlConstantCollection ( SqlConstant items ) : System
items SqlConstant /// The array whose elements are to be added to the new SqlConstantCollection. ///
return System

SqlConstantCollection() public method

Initializes a new instance of the SqlConstantCollection class, containing elements copied from another instance of SqlConstantCollection
public SqlConstantCollection ( SqlConstantCollection items ) : System
items SqlConstantCollection /// The SqlConstantCollection whose elements are to be added to the new SqlConstantCollection. ///
return System

SqlConstantCollection() public method

Initializes a new empty instance of the SqlConstantCollection class with the specified initial capacity
public SqlConstantCollection ( int capacity ) : System
capacity int
return System

this() public method

Gets or sets the SqlConstant at the given index in this SqlConstantCollection.
public this ( int index ) : SqlConstant
index int
return SqlConstant