Class WeakDictionary<TKey, TValue>
Inheritance
System.Object
WeakDictionary<TKey, TValue>
Assembly: Lucene.Net.dll
Syntax
public sealed class WeakDictionary<TKey, TValue> : IDictionary<TKey, TValue> where TKey : class
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Constructors
|
Improve this Doc
View Source
WeakDictionary()
Declaration
|
Improve this Doc
View Source
WeakDictionary(IEnumerable<KeyValuePair<TKey, TValue>>)
Declaration
public WeakDictionary(IEnumerable<KeyValuePair<TKey, TValue>> otherDictionary)
Parameters
Type |
Name |
Description |
IEnumerable<KeyValuePair<TKey, TValue>> |
otherDictionary |
|
|
Improve this Doc
View Source
WeakDictionary(Int32)
Declaration
public WeakDictionary(int initialCapacity)
Parameters
Type |
Name |
Description |
System.Int32 |
initialCapacity |
|
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Item[TKey]
Declaration
public TValue this[TKey key] { get; set; }
Parameters
Type |
Name |
Description |
TKey |
key |
|
Property Value
|
Improve this Doc
View Source
Keys
Declaration
public ICollection<TKey> Keys { get; }
Property Value
Type |
Description |
ICollection<TKey> |
|
|
Improve this Doc
View Source
Values
Declaration
public ICollection<TValue> Values { get; }
Property Value
Type |
Description |
ICollection<TValue> |
|
Methods
|
Improve this Doc
View Source
Add(TKey, TValue)
Declaration
public void Add(TKey key, TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
|
Improve this Doc
View Source
AddOrUpdate(TKey, TValue)
Declaration
public void AddOrUpdate(TKey key, TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
ContainsKey(TKey)
Declaration
public bool ContainsKey(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
Returns
Type |
Description |
IEnumerator<KeyValuePair<TKey, TValue>> |
|
|
Improve this Doc
View Source
Remove(TKey)
Declaration
public bool Remove(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetValue(TKey, out TValue)
Declaration
public bool TryGetValue(TKey key, out TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
Returns
Type |
Description |
System.Boolean |
|