Class ListFactory<T>
ListFactory implementation for System.Collections.Generic.List<T>
Inheritance
System.Object
ListFactory<T>
Implements
IListFactory<T, System.Collections.Generic.List<T>>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Common.Lib.Collections.Generic
Assembly: ImageVault.Common.dll
Syntax
public class ListFactory<T> : IListFactory<T, List<T>>
Type Parameters
Name | Description |
---|---|
T |
Constructors
ListFactory()
Declaration
public ListFactory()
Methods
Create(Int32)
Declaration
public List<T> Create(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<T> |
FindIndex(List<T>, Predicate<T>)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire list.
Declaration
public int FindIndex(List<T> list, Predicate<T> match)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<T> | list | |
System.Predicate<T> | match |
Returns
Type | Description |
---|---|
System.Int32 |