From 300013ae98bc5031b9d826562c39f5872460da29 Mon Sep 17 00:00:00 2001 From: Kazuki Ota Date: Sun, 29 Sep 2019 01:40:59 +0900 Subject: [PATCH] update readme --- README_COLLECTIONS.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README_COLLECTIONS.md b/README_COLLECTIONS.md index af83556..232999f 100644 --- a/README_COLLECTIONS.md +++ b/README_COLLECTIONS.md @@ -1,9 +1,9 @@ -# Livet.Collections +## Livet.Collections Livet collections is a copy of StatefulModel. Original is using `StatefulModel` namespace, this package is using `Livet.Collections` namespace. -## NotifyCollections +### NotifyCollections the classes that implement `ISynchronizableNotifyChangedCollection` have ToSyncedXXX Methods (XXX ... any `ISynchronizableNotifyChangedCollection`). @@ -12,7 +12,7 @@ ToSyncedXXX Methods is creating one-way synchronized collection with source coll ![image](./Images/collectionoverview.png) ![image](./Images/readonlywrapper.png) -###Simple Usage +#### Simple Usage ```csharp //thread-safe collection var source = new ObservableSynchronizedCollection(Enumerable.Range(1,3)); @@ -24,10 +24,10 @@ ToSyncedXXX Methods is creating one-way synchronized collection with source coll var dispatcherSource = new SynchronizationContextCollection(Enumerable.Range(1,5),context); ``` -### Sync Collections +#### Sync Collections While creating one-way synchronized collection, this method lock source collection, so no leak items. ![image](./Images/syncCollections.png) -### Detach +#### Detach `ISynchronizableNotifyChangedCollection` is IDisposable. When Dispose() called , all EventHandler from source collection will be detached. ![image](./Images/detach.png)