Class CollectionBinding
- Namespace
- NMF.Expressions
- Assembly
- NMF.Expressions.Utilities.dll
Denotes a helper class to create bindings between collections
public static class CollectionBinding
- Inheritance
-
CollectionBinding
- Inherited Members
Methods
Create<T>(IEnumerableExpression<T>, ICollection<T>)
Creates a binding between the given collections
public static IDisposable Create<T>(IEnumerableExpression<T> sourceCollection, ICollection<T> targetCollection)
Parameters
sourceCollection
IEnumerableExpression<T>The source collection
targetCollection
ICollection<T>The target collection
Returns
- IDisposable
An object that can be disposed to revoke the binding
Type Parameters
T
The type of the elements
Create<T>(IEnumerableExpression<T>, ICollection<T>, bool)
Creates a binding between the given collections
public static IDisposable Create<T>(IEnumerableExpression<T> sourceCollection, ICollection<T> targetCollection, bool force)
Parameters
sourceCollection
IEnumerableExpression<T>The source collection
targetCollection
ICollection<T>The target collection
force
boolTrue, if the contents of the target collection should be forced to the source collection at start
Returns
- IDisposable
An object that can be disposed to revoke the binding
Type Parameters
T
The type of the elements