CollectionExtensionsSynchCollectionAsyncT Method (ObservableCollectionT, IListT, Boolean) |
Synches the collection items to the target collection items.
Namespace:
Xcalibur.Extensions
Assembly:
Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax public static Task SynchCollectionAsync<T>(
this ObservableCollection<T> source,
IList<T> updatedCollection,
bool canSort = false
)
<ExtensionAttribute>
Public Shared Function SynchCollectionAsync(Of T) (
source As ObservableCollection(Of T),
updatedCollection As IList(Of T),
Optional canSort As Boolean = false
) As Task
public:
[ExtensionAttribute]
generic<typename T>
static Task^ SynchCollectionAsync(
ObservableCollection<T>^ source,
IList<T>^ updatedCollection,
bool canSort = false
)
[<ExtensionAttribute>]
static member SynchCollectionAsync :
source : ObservableCollection<'T> *
updatedCollection : IList<'T> *
?canSort : bool
(* Defaults:
let _canSort = defaultArg canSort false
*)
-> Task
Parameters
- source
- Type: System.Collections.ObjectModelObservableCollectionT
The source. - updatedCollection
- Type: System.Collections.GenericIListT
The updated collection. - canSort (Optional)
- Type: SystemBoolean
if set to true [can sort].
Type Parameters
- T
Return Value
Type:
TaskUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ObservableCollectionT. 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