Created
January 20, 2016 14:04
-
-
Save MeirionHughes/5223b6d4ba97b06672da to your computer and use it in GitHub Desktop.
Read Only ObservableCollection as contract interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface INotifyCollection<T> | |
: ICollection<T>, | |
INotifyCollectionChanged | |
{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IReadOnlyNotifyCollection<out T> | |
: IReadOnlyCollection<T>, | |
INotifyCollectionChanged | |
{} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NotifyCollection<T> | |
: ObservableCollection<T>, | |
INotifyCollection<T>, | |
IReadOnlyNotifyCollection<T> | |
{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: