Class BaseIndex<TKey, TVal>
Inheritance
BaseIndex<TKey, TVal>
Assembly: Libplanet.Store.dll
Syntax
public abstract class BaseIndex<TKey, TVal> : IDictionary<TKey, TVal>, ICollection<KeyValuePair<TKey, TVal>>, IEnumerable<KeyValuePair<TKey, TVal>>, IEnumerable
Type Parameters
Name |
Description |
TKey |
|
TVal |
|
Constructors
|
Improve this Doc
View Source
BaseIndex(IStore)
Declaration
protected BaseIndex(IStore store)
Parameters
Type |
Name |
Description |
IStore |
store |
|
Properties
|
Improve this Doc
View Source
Count
Declaration
public abstract int Count { get; }
Property Value
|
Improve this Doc
View Source
IsReadOnly
Declaration
public abstract bool IsReadOnly { get; }
Property Value
|
Improve this Doc
View Source
Item[TKey]
Declaration
public abstract TVal this[TKey key] { get; set; }
Parameters
Type |
Name |
Description |
TKey |
key |
|
Property Value
|
Improve this Doc
View Source
Keys
Declaration
public abstract ICollection<TKey> Keys { get; }
Property Value
|
Improve this Doc
View Source
Store
Declaration
protected IStore Store { get; }
Property Value
|
Improve this Doc
View Source
Values
Declaration
public abstract ICollection<TVal> Values { get; }
Property Value
Methods
|
Improve this Doc
View Source
Add(TKey, TVal)
Declaration
public void Add(TKey key, TVal value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TVal |
value |
|
|
Improve this Doc
View Source
Add(KeyValuePair<TKey, TVal>)
Declaration
public void Add(KeyValuePair<TKey, TVal> item)
Parameters
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
Contains(KeyValuePair<TKey, TVal>)
Declaration
public abstract bool Contains(KeyValuePair<TKey, TVal> item)
Parameters
Returns
|
Improve this Doc
View Source
ContainsKey(TKey)
Declaration
public abstract bool ContainsKey(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
|
Improve this Doc
View Source
CopyTo(KeyValuePair<TKey, TVal>[], Int32)
Declaration
public void CopyTo(KeyValuePair<TKey, TVal>[] array, int arrayIndex)
Parameters
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<TKey, TVal>> GetEnumerator()
Returns
|
Improve this Doc
View Source
Remove(TKey)
Declaration
public abstract bool Remove(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
|
Improve this Doc
View Source
Remove(KeyValuePair<TKey, TVal>)
Declaration
public bool Remove(KeyValuePair<TKey, TVal> item)
Parameters
Returns
|
Improve this Doc
View Source
TryGetValue(TKey, out TVal)
Declaration
public bool TryGetValue(TKey key, out TVal value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TVal |
value |
|
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements
Extension Methods