Skip to content
This repository has been archived by the owner on Sep 22, 2019. It is now read-only.

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ugaya40 committed Jul 14, 2015
1 parent 53a8ade commit b360464
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StatefulModel
these classes are frequent use of stateful Models for M-V-Whatever.
PCL(Portable Class Library & ) & MIT License.
PCL(Portable Class Library) & MIT License.

supported
- .NET Framework 4.5
Expand Down Expand Up @@ -37,10 +37,9 @@ ToSyncedXXX Methods is creating one-way synchronized collection with source coll
```

### Sync Collections
While creating one-way synchronized collection, this method lock source collection, so no leak items.
![image](./images/syncCollections.png)
### Detach
While creating one-way synchronized collection, this method lock source collection, so no leak.

ISynchronizableNotifyChangedCollection < T > is IDisposable. When Dispose() called , all EventHandler from source collection will be detached.
![image](./images/detach.png)

Expand All @@ -61,16 +60,12 @@ PropertyChangedEventListener/CollectionChangedEventListener
//when dispose() called, detach all handler
listerner.Dispose();
```

## Other Classes

- CompositeDiposable - Rx like CompositeDisposable

### WeakEventListeners

- PropertyChangedWeakEventListener (PropertyChangedEventListener by weak event)
- CollectionChangedWeakEventListener (CollectionChangedWeakEventListener by weak event)
- WeakEventListener (all‐purpose weak event listener)

```csharp

var button = new Button(){Width = 100,Height = 100};
Expand All @@ -82,14 +77,17 @@ PropertyChangedEventListener/CollectionChangedEventListener
(sender,e) => button.Content = "Clicked!!");

```

### Anonymouses

- AnonymousComparer < T >
- AnonymousDisposable
- AnonymousSynchronizationContext
etc

## Other Classes

- CompositeDiposable - Rx like CompositeDisposable
etc



Expand Down

0 comments on commit b360464

Please sign in to comment.