Method Copy
Copy<T>(LuceneVersion, ICollection<T>)
Returns a copy of the given set as a CharArraySet. If the given set is a CharArraySet the ignoreCase property will be preserved.
Note: If you intend to create a copy of another CharArraySet where the LuceneVersion of the source set differs from its copy CharArraySet(LuceneVersion, ICollection<String>, Boolean) should be used instead. The Copy<T>(LuceneVersion, ICollection<T>) will preserve the LuceneVersion of the source set it is an instance of CharArraySet.
Declaration
public static CharArraySet Copy<T>(LuceneVersion matchVersion, ICollection<T> set)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | compatibility match version. This argument will be ignored if the given set is a CharArraySet. |
System.Collections.Generic.ICollection<T> | set | a set to copy |
Returns
Type | Description |
---|---|
CharArraySet | a copy of the given set as a CharArraySet. If the given set is a CharArraySet the Lucene.Net.Analysis.Util.CharArrayMap`1.ignoreCase field as well as the MatchVersion will be preserved. |
Type Parameters
Name | Description |
---|---|
T |