Class DictionaryExtensions
Extensions to IDictionary<TKey, TValue> for CharArrayDictionary<TValue>.
Inherited Members
Namespace: Lucene.Net.Analysis.Util
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public static class DictionaryExtensions
  Methods
ToCharArrayDictionary<TValue>(IDictionary<string, TValue>, LuceneVersion)
Returns a copy of the current IDictionary<TKey, TValue> as a CharArrayDictionary<TValue>
using the specified matchVersion value.
Declaration
public static CharArrayDictionary<TValue> ToCharArrayDictionary<TValue>(this IDictionary<string, TValue> dictionary, LuceneVersion matchVersion)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IDictionary<string, TValue> | dictionary | A IDictionary<TKey, TValue> to copy.  | 
      
| LuceneVersion | matchVersion | compatibility match version see Version note above for details.  | 
      
Returns
| Type | Description | 
|---|---|
| CharArrayDictionary<TValue> | A copy of the current dictionary as a CharArrayDictionary<TValue>.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TValue | The type of dictionary value.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | 
  | 
      
ToCharArrayDictionary<TValue>(IDictionary<string, TValue>, LuceneVersion, bool)
Returns a copy of the current IDictionary<TKey, TValue> as a CharArrayDictionary<TValue>
using the specified matchVersion and ignoreCase values.
Declaration
public static CharArrayDictionary<TValue> ToCharArrayDictionary<TValue>(this IDictionary<string, TValue> dictionary, LuceneVersion matchVersion, bool ignoreCase)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IDictionary<string, TValue> | dictionary | A IDictionary<TKey, TValue> to copy.  | 
      
| LuceneVersion | matchVersion | compatibility match version see Version note above for details.  | 
      
| bool | ignoreCase | 
  | 
      
Returns
| Type | Description | 
|---|---|
| CharArrayDictionary<TValue> | A copy of the current dictionary as a CharArrayDictionary<TValue>.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TValue | The type of dictionary value.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | 
  |