Added new class ObservableDictionary to the collection class library; 100% test coverage for the new ObservableDictionary class; fixed some minor issues with the code of ObservableCollection and ReadOnlyDictionary
git-svn-id: file:///srv/devel/repo-conversion/nusu@117 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
f0498fbb60
commit
b90ff1c78b
7 changed files with 966 additions and 16 deletions
|
|
@ -26,9 +26,9 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace Nuclex.Support.Collections {
|
||||
|
||||
/// <summary>Wraps a Dictionary and prevents users from modifying it</summary>
|
||||
/// <typeparam name="KeyType">Type of the keys used in the Dictionary</typeparam>
|
||||
/// <typeparam name="ValueType">Type of the values used in the Dictionary</typeparam>
|
||||
/// <summary>Wraps a dictionary and prevents users from modifying it</summary>
|
||||
/// <typeparam name="KeyType">Type of the keys used in the dictionary</typeparam>
|
||||
/// <typeparam name="ValueType">Type of the values used in the dictionary</typeparam>
|
||||
[Serializable]
|
||||
public class ReadOnlyDictionary<KeyType, ValueType> :
|
||||
#if !COMPACTFRAMEWORK
|
||||
|
|
@ -89,7 +89,7 @@ namespace Nuclex.Support.Collections {
|
|||
|
||||
#endif // !COMPACTFRAMEWORK
|
||||
|
||||
/// <summary>Initializes a new read-only Dictionary wrapper</summary>
|
||||
/// <summary>Initializes a new read-only dictionary wrapper</summary>
|
||||
/// <param name="dictionary">Dictionary that will be wrapped</param>
|
||||
public ReadOnlyDictionary(IDictionary<KeyType, ValueType> dictionary) {
|
||||
this.typedDictionary = dictionary;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue