Method Copy
Copy<TValue>(LuceneVersion, IDictionary<String, TValue>)
Returns a copy of the given map as a CharArrayMap<TValue>. If the given map is a CharArrayMap<TValue> the ignoreCase property will be preserved.
Note: If you intend to create a copy of another CharArrayMap<TValue> where the LuceneVersion of the source map differs from its copy CharArrayMap(LuceneVersion, IDictionary<String, TValue>, Boolean) should be used instead. The Copy<TValue>(LuceneVersion, IDictionary<String, TValue>) will preserve the LuceneVersion of the source map if it is an instance of CharArrayMap<TValue>.
Declaration
public static CharArrayMap<TValue> Copy<TValue>(LuceneVersion matchVersion, IDictionary<string, TValue> map)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | compatibility match version see Version note above for details. This argument will be ignored if the given map is a CharArrayMap<TValue>. |
System.Collections.Generic.IDictionary<System.String, TValue> | map | a map to copy |
Returns
Type | Description |
---|---|
CharArrayMap<TValue> | a copy of the given map as a CharArrayMap<TValue>. If the given map
is a CharArrayMap<TValue> the ignoreCase property as well as the
|
Type Parameters
Name | Description |
---|---|
TValue |