List utility class
More...
|
static bool | Equals< T > (IList< T > a, IList< T > b, IEqualityComparer< T > comparer=null) |
| Determine if IList<T> are equal. More...
|
|
static System.Type | GetElementType (System.Type listType) |
| Get the element type. More...
|
|
static System.Type | GetIListType (System.Type elementType) |
| Get the type of IList<elementType>. More...
|
|
static System.Type | GetICollectionType (System.Type elementType) |
| Get the type of ICollection<elementType>. More...
|
|
static System.Type | GetListType (System.Type elementType) |
| Get the type of List<elementType>. More...
|
|
◆ Equals< T >()
static bool Equals< T > |
( |
IList< T > |
a, |
|
|
IList< T > |
b, |
|
|
IEqualityComparer< T > |
comparer = null |
|
) |
| |
|
static |
Determine if IList<T> are equal.
- Template Parameters
-
- Parameters
-
a | IList<T> to judge |
b | IList<T> to judge |
comparer | Interface for equality comparison. When null is specified, default judgment is used. |
- Returns
- Returns true if they are equal.
◆ GetElementType()
static System.Type GetElementType |
( |
System.Type |
listType | ) |
|
|
static |
Get the element type.
- Parameters
-
- Returns
- Returns the element type.
◆ GetICollectionType()
static System.Type GetICollectionType |
( |
System.Type |
elementType | ) |
|
|
static |
Get the type of ICollection<elementType>.
- Parameters
-
- Returns
- Returns the type of ICollection<elementType>.
◆ GetIListType()
static System.Type GetIListType |
( |
System.Type |
elementType | ) |
|
|
static |
Get the type of IList<elementType>.
- Parameters
-
- Returns
- Returns the type of IList<elementType>.
◆ GetListType()
static System.Type GetListType |
( |
System.Type |
elementType | ) |
|
|
static |
Get the type of List<elementType>.
- Parameters
-
- Returns
- Returns the type of List<elementType>.