Interface IReadOnlyDictionary<TK, T>
A read-only dictionary that raises an event whenever an item is added, removed, or modified.
Inherited Members
Namespace: VivoxUnity
Assembly: VivoxUnity.dll
Syntax
public interface IReadOnlyDictionary<TK, T> : IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
TK | The key type. |
T | The value type. |
Properties
Count
The number of items in the collection.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
int |
this[TK]
The value for a particular key.
Declaration
T this[TK key] { get; }
Parameters
Type | Name | Description |
---|---|---|
TK | key | The key. |
Property Value
Type | Description |
---|---|
T | The value for the key. |
Keys
All the keys.
Declaration
ICollection<TK> Keys { get; }
Property Value
Type | Description |
---|---|
ICollection<TK> |
Methods
ContainsKey(TK)
Determines if a key is contained.
Declaration
bool ContainsKey(TK key)
Parameters
Type | Name | Description |
---|---|---|
TK | key | The key. |
Returns
Type | Description |
---|---|
bool | True if the key is contained. |
Events
AfterKeyAdded
Raised when an item is added.
Declaration
event EventHandler<KeyEventArg<TK>> AfterKeyAdded
Event Type
Type | Description |
---|---|
Event |
AfterValueUpdated
Raised after a value has been updated.
Declaration
event EventHandler<ValueEventArg<TK, T>> AfterValueUpdated
Event Type
Type | Description |
---|---|
Event |
BeforeKeyRemoved
Raised when an item is about to be removed.
Declaration
event EventHandler<KeyEventArg<TK>> BeforeKeyRemoved
Event Type
Type | Description |
---|---|
Event |