Method Map
Map<V>(Func<T, V>)
Create a new list consisting of the results of mapping all items of this list. The new list will use the default equalityComparer for the item type V.
Declaration
IList<V> Map<V>(Func<T, V> mapper)
Parameters
Type | Name | Description |
---|---|---|
Func<T, V> | mapper | The delegate defining the map. |
Returns
Type | Description |
---|---|
IList<V> | The new list. |
Type Parameters
Name | Description |
---|---|
V | The type of items of the new list |
Map<V>(Func<T, V>, Collections.Generic.IEqualityComparer<V>)
Create a new list consisting of the results of mapping all items of this list. The new list will use a specified equalityComparer for the item type.
Declaration
IList<V> Map<V>(Func<T, V> mapper, Collections.Generic.IEqualityComparer<V> equalityComparer)
Parameters
Type | Name | Description |
---|---|---|
Func<T, V> | mapper | The delegate defining the map. |
System.Collections.Generic.IEqualityComparer<V> | equalityComparer | The equalityComparer to use for the new list |
Returns
Type | Description |
---|---|
IList<V> | The new list. |
Type Parameters
Name | Description |
---|---|
V | The type of items of the new list |