C# Class Castle.Facilities.NHibernateIntegration.Util.FieldInfoCollection

Inheritance: IFieldInfoList, IList, ICloneable
ファイルを表示 Open project: hconceicao/Castle.Facilities.NHibernateIntegration3 Class Usage Examples

Public Methods

Method Description
Add ( FieldInfo value ) : int

Adds a FieldInfo to the end of the FieldInfoCollection.

Please refer to ArrayList.Add for details.

AddRange ( FieldInfo array ) : void

Adds the elements of a FieldInfo array to the end of the FieldInfoCollection.

Please refer to ArrayList.AddRange for details.

AddRange ( FieldInfoCollection collection ) : void

Adds the elements of another collection to the end of the FieldInfoCollection.

Please refer to ArrayList.AddRange for details.

BinarySearch ( FieldInfo value, IComparer comparer ) : int

Searches the entire sorted FieldInfoCollection for an FieldInfo element using the specified comparer and returns the zero-based index of the element.

Please refer to ArrayList.BinarySearch(Object, IComparer) for details.

BinarySearch ( int index, int count, FieldInfo value, IComparer comparer ) : int

Searches a section of the sorted FieldInfoCollection for an FieldInfo element using the specified comparer and returns the zero-based index of the element.

Please refer to ArrayList.BinarySearch(Int32, Int32, Object, IComparer) for details.

Clear ( ) : void

Removes all elements from the FieldInfoCollection.

Please refer to ArrayList.Clear for details.

Clone ( ) : object

Creates a shallow copy of the FieldInfoCollection.

Please refer to ArrayList.Clone for details.

Contains ( FieldInfo value ) : bool

Determines whether the FieldInfoCollection contains the specified FieldInfo element.

Please refer to ArrayList.Contains for details.

ContainsKey ( string key ) : bool

Determines whether the FieldInfoCollection contains the specified MemberInfo.Name value.

ContainsKey is similar to Contains but compares the specified key to the value of the MemberInfo.Name property of each FieldInfo element, rather than to the element itself.

CopyTo ( FieldInfo array ) : void

Copies the entire FieldInfoCollection to a one-dimensional Array of FieldInfo elements, starting at the beginning of the target array.

Please refer to ArrayList.CopyTo(int, Array, int, int) for details.

CopyTo ( FieldInfo array, int arrayIndex ) : void

Copies the entire FieldInfoCollection to a one-dimensional Array of FieldInfo elements, starting at the specified index of the target array.

Please refer to ArrayList.CopyTo(int, Array, int, int) for details.

FieldInfoCollection ( ) : System

Initializes a new instance of the FieldInfoCollection class that is empty and has the default initial capacity.

Please refer to ArrayList() for details.

FieldInfoCollection ( FieldInfo array ) : System

Initializes a new instance of the FieldInfoCollection class that contains elements copied from the specified FieldInfo array and that has the same initial capacity as the number of elements copied.

Please refer to ArrayList(ICollection) for details.

FieldInfoCollection ( FieldInfoCollection collection ) : System

Initializes a new instance of the FieldInfoCollection class that contains elements copied from the specified collection and that has the same initial capacity as the number of elements copied.

Please refer to ArrayList(ICollection) for details.

FieldInfoCollection ( int capacity ) : System

Initializes a new instance of the FieldInfoCollection class that is empty and has the specified initial capacity.

Please refer to ArrayList(Int32) for details.

GetByKey ( string key ) : FieldInfo

Gets the FieldInfo element associated with the first occurrence of the specified MemberInfo.Name value.

GetByKey compares the specified key to the value of the MemberInfo.Name property of each FieldInfo element, and returns the first matching element.

GetEnumerator ( ) : IFieldInfoEnumerator

Returns an IFieldInfoEnumerator that can iterate through the FieldInfoCollection.

Please refer to ArrayList.GetEnumerator() for details.

IndexOf ( FieldInfo value ) : int

Returns the zero-based index of the first occurrence of the specified FieldInfo in the FieldInfoCollection.

Please refer to ArrayList.IndexOf(object) for details.

IndexOfKey ( string key ) : int

Returns the zero-based index of the first occurrence of the specified MemberInfo.Name value in the FieldInfoCollection.

IndexOfKey is similar to IndexOf but compares the specified key to the value of the MemberInfo.Name property of each FieldInfo element, rather than to the element itself.

Insert ( int index, FieldInfo value ) : void

Inserts a FieldInfo element into the FieldInfoCollection at the specified index.

Please refer to ArrayList.Insert for details.

ReadOnly ( FieldInfoCollection collection ) : FieldInfoCollection

Returns a read-only wrapper for the specified FieldInfoCollection.

Please refer to ArrayList.ReadOnly(IList) for details.

Remove ( FieldInfo value ) : void

Removes the first occurrence of the specified FieldInfo from the FieldInfoCollection.

Please refer to ArrayList.Remove for details.

RemoveAt ( int index ) : void

Removes the element at the specified index of the FieldInfoCollection.

Please refer to ArrayList.RemoveAt for details.

RemoveRange ( int index, int count ) : void

Removes the specified range of elements from the FieldInfoCollection.

Please refer to ArrayList.RemoveRange for details.

Reverse ( ) : void

Reverses the order of the elements in the entire FieldInfoCollection.

Please refer to Array.Reverse(Array, int, int) for details.

Reverse ( int index, int count ) : void

Reverses the order of the elements in the specified range.

Please refer to Array.Reverse(Array, int, int) for details.

Sort ( ) : void

Sorts the elements in the entire FieldInfoCollection using the IComparable implementation of each element.

Please refer to ArrayList.Sort() for details.

Sort ( IComparer comparer ) : void

Sorts the elements in the entire FieldInfoCollection using the specified comparer.

Please refer to ArrayList.Sort(IComparer) for details.

Sort ( int index, int count, IComparer comparer ) : void

Sorts the elements in the specified range using the specified comparer.

Please refer to ArrayList.Sort(Int32, Int32, IComparer) for details.

ToArray ( ) : FieldInfo[]

Copies the elements of the FieldInfoCollection to a new Array of FieldInfo elements.

Please refer to ArrayList.ToArray() for details.

TrimToSize ( ) : void

Sets the capacity to the actual number of elements in the FieldInfoCollection.

Please refer to ArrayList.TrimToSize for details.

this ( int index ) : FieldInfo

Gets or sets the FieldInfo element at the specified index.

Please refer to ArrayList.this for details.

Private Methods

Method Description
AddRange ( FieldInfo array, int range ) : void
CheckUnique ( ) : void
CheckUnique ( FieldInfo value ) : void
CheckUnique ( FieldInfo value, int index ) : void
FieldInfoCollection ( Data data ) : System

Initializes a new instance of the FieldInfoCollection class with the specified data container.

This constructor is used to create read-only wrappers.

ICollection ( Array array, int arrayIndex ) : void

Copies the entire FieldInfoCollection to a one-dimensional Array, starting at the specified index of the target array.

Please refer to ArrayList.CopyTo(int, Array, int, int) for details.

IEnumerable ( ) : IEnumerator

Returns an IEnumerator that can iterate through the FieldInfoCollection.

Please refer to ArrayList.GetEnumerator() for details.

IList ( object value ) : bool

Determines whether the FieldInfoCollection contains the specified element.

Please refer to ArrayList.Contains for details.

IList ( object value ) : int

Adds an Object to the end of the FieldInfoCollection.

Please refer to ArrayList.Add for details.

IList ( int index, object value ) : void

Inserts an element into the FieldInfoCollection at the specified index.

Please refer to ArrayList.Insert for details.

IList ( object value ) : void

Removes the first occurrence of the specified Object from the FieldInfoCollection.

Please refer to ArrayList.Remove for details.

this ( int index ) : objectIList.System

Gets or sets the element at the specified index.

Please refer to ArrayList.this for details.

Method Details

Add() public method

Adds a FieldInfo to the end of the FieldInfoCollection.
Please refer to ArrayList.Add for details.
/// The /// is read-only or has a fixed size. /// -or- /// The FieldInfoCollection /// already contains , /// and the FieldInfoCollection /// ensures that all elements are unique.
public Add ( FieldInfo value ) : int
value System.Reflection.FieldInfo /// The object to be added /// to the end of the . /// This argument may be a null reference. ///
return int

AddRange() public method

Adds the elements of a FieldInfo array to the end of the FieldInfoCollection.
Please refer to ArrayList.AddRange for details.
/// is a null reference. /// The /// is read-only or has a fixed size. /// -or- /// The FieldInfoCollection already contains /// one or more elements in , /// and the FieldInfoCollection /// ensures that all elements are unique. ///
public AddRange ( FieldInfo array ) : void
array System.Reflection.FieldInfo /// An of /// elements that should be added to the end of the /// .
return void

AddRange() public method

Adds the elements of another collection to the end of the FieldInfoCollection.
Please refer to ArrayList.AddRange for details.
/// is a null reference. /// The /// is read-only or has a fixed size. /// -or- /// The FieldInfoCollection already contains one /// or more elements in , /// and the FieldInfoCollection /// ensures that all elements are unique. ///
public AddRange ( FieldInfoCollection collection ) : void
collection FieldInfoCollection /// The whose elements /// should be added to the end of the current collection.
return void

BinarySearch() public method

Searches the entire sorted FieldInfoCollection for an FieldInfo element using the specified comparer and returns the zero-based index of the element.
Please refer to ArrayList.BinarySearch(Object, IComparer) for details.
/// is a null reference, /// and FieldInfo does not implement /// the interface.
public BinarySearch ( FieldInfo value, IComparer comparer ) : int
value System.Reflection.FieldInfo /// The object to locate /// in the . /// This argument may be a null reference. ///
comparer IComparer /// The implementation /// to use when comparing elements. /// -or- /// A null reference to use the /// implementation of each element.
return int

BinarySearch() public method

Searches a section of the sorted FieldInfoCollection for an FieldInfo element using the specified comparer and returns the zero-based index of the element.
Please refer to ArrayList.BinarySearch(Int32, Int32, Object, IComparer) for details.
/// and /// do not denote a valid range of elements in the /// . /// -or- /// is a null reference, /// and FieldInfo does not implement /// the interface. /// /// is less than zero. /// -or- /// is less than zero. ///
public BinarySearch ( int index, int count, FieldInfo value, IComparer comparer ) : int
index int /// The zero-based starting index of the range of elements to search. ///
count int The number of elements to search.
value System.Reflection.FieldInfo /// The object to locate /// in the . /// This argument may be a null reference. ///
comparer IComparer /// The implementation /// to use when comparing elements. /// -or- /// A null reference to use the /// implementation of each element.
return int

Clear() public method

Removes all elements from the FieldInfoCollection.
Please refer to ArrayList.Clear for details.
/// The /// is read-only or has a fixed size.
public Clear ( ) : void
return void

Clone() public method

Creates a shallow copy of the FieldInfoCollection.
Please refer to ArrayList.Clone for details.
public Clone ( ) : object
return object

Contains() public method

Determines whether the FieldInfoCollection contains the specified FieldInfo element.
Please refer to ArrayList.Contains for details.
public Contains ( FieldInfo value ) : bool
value FieldInfo /// The object to locate /// in the . /// This argument may be a null reference. ///
return bool

ContainsKey() public method

Determines whether the FieldInfoCollection contains the specified MemberInfo.Name value.
ContainsKey is similar to Contains but compares the specified key to the value of the MemberInfo.Name property of each FieldInfo element, rather than to the element itself.
public ContainsKey ( string key ) : bool
key string /// The value to locate /// in the . /// This argument may be a null reference. ///
return bool

CopyTo() public method

Copies the entire FieldInfoCollection to a one-dimensional Array of FieldInfo elements, starting at the beginning of the target array.
Please refer to ArrayList.CopyTo(int, Array, int, int) for details.
/// is a null reference. /// The number of elements in the source /// is greater than /// the available space in the destination . ///
public CopyTo ( FieldInfo array ) : void
array FieldInfo /// The one-dimensional that is the destination /// of the elements copied from the /// . /// The Array must have zero-based indexing.
return void

CopyTo() public method

Copies the entire FieldInfoCollection to a one-dimensional Array of FieldInfo elements, starting at the specified index of the target array.
Please refer to ArrayList.CopyTo(int, Array, int, int) for details.
/// is a null reference. /// is less than zero. /// is equal to or /// greater than the length of . /// -or- /// The number of elements in the source /// is greater /// than the available space from /// to the end of the destination . ///
public CopyTo ( FieldInfo array, int arrayIndex ) : void
array FieldInfo /// The one-dimensional that is the destination /// of the elements copied from the /// . /// The Array must have zero-based indexing.
arrayIndex int /// The zero-based index in /// at which copying begins.
return void

FieldInfoCollection() public method

Initializes a new instance of the FieldInfoCollection class that is empty and has the default initial capacity.
Please refer to ArrayList() for details.
public FieldInfoCollection ( ) : System
return System

FieldInfoCollection() public method

Initializes a new instance of the FieldInfoCollection class that contains elements copied from the specified FieldInfo array and that has the same initial capacity as the number of elements copied.
Please refer to ArrayList(ICollection) for details.
/// is a null reference.
public FieldInfoCollection ( FieldInfo array ) : System
array FieldInfo /// An of /// elements that are copied to the new collection.
return System

FieldInfoCollection() public method

Initializes a new instance of the FieldInfoCollection class that contains elements copied from the specified collection and that has the same initial capacity as the number of elements copied.
Please refer to ArrayList(ICollection) for details.
/// is a null reference.
public FieldInfoCollection ( FieldInfoCollection collection ) : System
collection FieldInfoCollection /// The /// whose elements are copied to the new collection.
return System

FieldInfoCollection() public method

Initializes a new instance of the FieldInfoCollection class that is empty and has the specified initial capacity.
Please refer to ArrayList(Int32) for details.
/// is less than zero.
public FieldInfoCollection ( int capacity ) : System
capacity int /// The initial number of elements that the new /// can contain.
return System

GetByKey() public method

Gets the FieldInfo element associated with the first occurrence of the specified MemberInfo.Name value.
GetByKey compares the specified key to the value of the MemberInfo.Name property of each FieldInfo element, and returns the first matching element.
public GetByKey ( string key ) : FieldInfo
key string /// The /// value whose element to get. /// This argument may be a null reference. ///
return FieldInfo

GetEnumerator() public method

Returns an IFieldInfoEnumerator that can iterate through the FieldInfoCollection.
Please refer to ArrayList.GetEnumerator() for details.
public GetEnumerator ( ) : IFieldInfoEnumerator
return IFieldInfoEnumerator

IndexOf() public method

Returns the zero-based index of the first occurrence of the specified FieldInfo in the FieldInfoCollection.
Please refer to ArrayList.IndexOf(object) for details.
public IndexOf ( FieldInfo value ) : int
value FieldInfo /// The object /// to locate in the . /// This argument may be a null reference. ///
return int

IndexOfKey() public method

Returns the zero-based index of the first occurrence of the specified MemberInfo.Name value in the FieldInfoCollection.
IndexOfKey is similar to IndexOf but compares the specified key to the value of the MemberInfo.Name property of each FieldInfo element, rather than to the element itself.
public IndexOfKey ( string key ) : int
key string /// The value /// to locate in the . /// This argument may be a null reference. ///
return int

Insert() public method

Inserts a FieldInfo element into the FieldInfoCollection at the specified index.
Please refer to ArrayList.Insert for details.
/// is less than zero. /// -or- /// is greater than . /// /// The /// is read-only or has a fixed size. /// -or- /// The FieldInfoCollection /// already contains , /// and the FieldInfoCollection /// ensures that all elements are unique. ///
public Insert ( int index, FieldInfo value ) : void
index int /// The zero-based index at which /// should be inserted.
value FieldInfo /// The object to insert /// into the . /// This argument may be a null reference. ///
return void

ReadOnly() public static method

Returns a read-only wrapper for the specified FieldInfoCollection.
Please refer to ArrayList.ReadOnly(IList) for details.
/// is a null reference.
public static ReadOnly ( FieldInfoCollection collection ) : FieldInfoCollection
collection FieldInfoCollection /// The to wrap.
return FieldInfoCollection

Remove() public method

Removes the first occurrence of the specified FieldInfo from the FieldInfoCollection.
Please refer to ArrayList.Remove for details.
/// The /// is read-only or has a fixed size.
public Remove ( FieldInfo value ) : void
value FieldInfo /// The object to remove /// from the . /// This argument may be a null reference. ///
return void

RemoveAt() public method

Removes the element at the specified index of the FieldInfoCollection.
Please refer to ArrayList.RemoveAt for details.
/// is less than zero. /// -or- /// is equal to or /// greater than . /// The /// is read-only or has a fixed size.
public RemoveAt ( int index ) : void
index int /// The zero-based index of the element to remove.
return void

RemoveRange() public method

Removes the specified range of elements from the FieldInfoCollection.
Please refer to ArrayList.RemoveRange for details.
/// and /// do not denote a valid range of elements in the /// . /// is less than zero. /// -or- /// is less than zero. /// /// The /// is read-only or has a fixed size.
public RemoveRange ( int index, int count ) : void
index int /// The zero-based starting index of the range of elements to remove. ///
count int The number of elements to remove.
return void

Reverse() public method

Reverses the order of the elements in the entire FieldInfoCollection.
Please refer to Array.Reverse(Array, int, int) for details.
/// The is read-only. ///
public Reverse ( ) : void
return void

Reverse() public method

Reverses the order of the elements in the specified range.
Please refer to Array.Reverse(Array, int, int) for details.
/// and /// do not denote a valid range of elements in the /// . /// is less than zero. /// -or- /// is less than zero. /// /// The is read-only. ///
public Reverse ( int index, int count ) : void
index int /// The zero-based starting index of the range of elements to reverse. ///
count int The number of elements to reverse.
return void

Sort() public method

Sorts the elements in the entire FieldInfoCollection using the IComparable implementation of each element.
Please refer to ArrayList.Sort() for details.
/// The is read-only. /// /// One or more elements in the /// do not implement the interface. ///
public Sort ( ) : void
return void

Sort() public method

Sorts the elements in the entire FieldInfoCollection using the specified comparer.
Please refer to ArrayList.Sort(IComparer) for details.
/// The is read-only. ///
public Sort ( IComparer comparer ) : void
comparer IComparer /// The implementation /// to use when comparing elements. /// -or- /// A null reference to use the /// implementation of each element.
return void

Sort() public method

Sorts the elements in the specified range using the specified comparer.
Please refer to ArrayList.Sort(Int32, Int32, IComparer) for details.
/// and /// do not denote a valid range of elements in the /// . /// is less than zero. /// -or- /// is less than zero. /// /// The is read-only. ///
public Sort ( int index, int count, IComparer comparer ) : void
index int /// The zero-based starting index of the range of elements to sort. ///
count int The number of elements to sort.
comparer IComparer /// The implementation /// to use when comparing elements. /// -or- /// A null reference to use the /// implementation of each element.
return void

ToArray() public method

Copies the elements of the FieldInfoCollection to a new Array of FieldInfo elements.
Please refer to ArrayList.ToArray() for details.
public ToArray ( ) : FieldInfo[]
return FieldInfo[]

TrimToSize() public method

Sets the capacity to the actual number of elements in the FieldInfoCollection.
Please refer to ArrayList.TrimToSize for details.
/// The /// is read-only or has a fixed size.
public TrimToSize ( ) : void
return void

this() public method

Gets or sets the FieldInfo element at the specified index.
Please refer to ArrayList.this for details.
/// is less than zero. /// -or- /// is equal to or /// greater than . /// The property is set, and the /// is read-only. /// -or- /// The property is set, the FieldInfoCollection /// already contains the specified element at a different index, /// and the FieldInfoCollection ensures /// that all elements are unique.
public this ( int index ) : FieldInfo
index int /// The zero-based index of the /// element to get or set.
return FieldInfo