Class IListExtensions
IList<T> extension methods.
Inherited Members
Namespace: Microsoft.GNS.Roster.Extensions
Assembly: Microsoft.XboxStudios.SQTech.Roster.Common.dll
Syntax
public static class IListExtensions
Methods
View SourceAddRange<T>(IList<T>, IEnumerable<T>)
Adds a IEnumerable values to a IList<T>.
Declaration
public static void AddRange<T>(this IList<T> source, IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | source | The source list. |
IEnumerable<T> | items | The items to add. |
Type Parameters
Name | Description |
---|---|
T | The list type. |
Set<T>(IList<T>, IEnumerable<T>)
Sets a list to a new list of items.
Declaration
public static void Set<T>(this IList<T> list, IEnumerable<T> newItems)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | list | The original list. |
IEnumerable<T> | newItems | The new items for the list. |
Type Parameters
Name | Description |
---|---|
T | The list type. |