Class TreeDictionary<K, V>
A sorted generic dictionary based on a red-black tree set.
Inheritance
System.Object
    EnumerableBase<KeyValuePair<K, V>>
    CollectionValueBase<KeyValuePair<K, V>>
    DictionaryBase<K, V>
    SortedDictionaryBase<K, V>
    TreeDictionary<K, V>
  Implements
ISortedDictionary<K, V>
    IDictionary<K, V>
    ICollectionValue<KeyValuePair<K, V>>
    System.Collections.Generic.IEnumerable<KeyValuePair<K, V>>
    System.Collections.IEnumerable
    
    System.IFormattable
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Lucene.Net.Support
Assembly: Lucene.Net.dll
Syntax
public class TreeDictionary<K, V> : SortedDictionaryBase<K, V>, ISortedDictionary<K, V>, IDictionary<K, V>, ICollectionValue<KeyValuePair<K, V>>, IEnumerable<KeyValuePair<K, V>>, IEnumerable, IShowable, IFormattable
  Type Parameters
| Name | Description | 
|---|---|
| K | |
| V | 
Constructors
| Improve this Doc View SourceTreeDictionary(MemoryType)
Create a red-black tree dictionary using the natural comparer for keys. System.ArgumentException if the key type K is not comparable.
Declaration
public TreeDictionary(MemoryType memoryType = MemoryType.Normal)
  Parameters
| Type | Name | Description | 
|---|---|---|
| MemoryType | memoryType | 
TreeDictionary(IComparer<K>, MemoryType)
Create a red-black tree dictionary using an external comparer for keys.
Declaration
public TreeDictionary(IComparer<K> comparer, MemoryType memoryType = MemoryType.Normal)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IComparer<K> | comparer | The external comparer  | 
      
| MemoryType | memoryType | 
Methods
| Improve this Doc View SourceSnapshot()
Make a snapshot of the current state of this dictionary
Declaration
public IEnumerable<KeyValuePair<K, V>> Snapshot()
  Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<KeyValuePair<K, V>> | The snapshot  | 
      
Implements
      System.Collections.Generic.IEnumerable<T>
  
  
      System.Collections.IEnumerable
  
  
  
      System.IFormattable