Click or drag to resize

CollectionExtensionsSynchCollectionT Method (IListT, IEnumerableT)

Synches the collection items to the target collection items.

Note: This does not observe sort order.

Read our blog on this topic: Making a Better ObservableCollection Part 1 – Extensions

Namespace:  Xcalibur.Extensions
Assembly:  Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
public static void SynchCollection<T>(
	this IList<T> source,
	IEnumerable<T> updatedCollection
)

Parameters

source
Type: System.Collections.GenericIListT
The items.
updatedCollection
Type: System.Collections.GenericIEnumerableT
The updated collection.

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also