Class CollectionExtensions
Extension methods for collection instances.
Inheritance
System.Object
CollectionExtensions
Namespace: Cortex.Net.Api
Assembly: Cortex.Net.dll
Syntax
public static class CollectionExtensions : object
Methods
| Improve this Doc View SourceRefill<T>(ICollection<T>, IEnumerable<T>)
Refill the collection with new items.
Declaration
public static void Refill<T>(this ICollection<T> collection, IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
ICollection<T> | collection | The observable collection to fill. |
IEnumerable<T> | items | The items to fill the collection with. |
Type Parameters
Name | Description |
---|---|
T | The type of items in the collection. |
Refill<T>(IReadOnlyCollection<T>, IEnumerable<T>)
Refill the collection with new items.
Declaration
public static void Refill<T>(this IReadOnlyCollection<T> collection, IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<T> | collection | The observable collection to fill. |
IEnumerable<T> | items | The items to fill the collection with. |
Type Parameters
Name | Description |
---|---|
T | The type of items in the collection. |