Class EnumerableExtensions
Extensions to IEnumerable<T> for CharArraySet.
Inherited Members
Namespace: Lucene.Net.Analysis.Util
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public static class EnumerableExtensions
  Methods
ToCharArraySet<T>(IEnumerable<T>, LuceneVersion)
Returns a copy of this IEnumerable<T> as a new instance of CharArraySet with the
specified matchVersion and ignoreCase set to false.
Declaration
public static CharArraySet ToCharArraySet<T>(this IEnumerable<T> collection, LuceneVersion matchVersion)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<T> | collection | This collection.  | 
      
| LuceneVersion | matchVersion | Compatibility match version.  | 
      
Returns
| Type | Description | 
|---|---|
| CharArraySet | A copy of this IEnumerable<T> as a CharArraySet.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The type of collection. Typically a string or char[].  | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | 
  | 
      
ToCharArraySet<T>(IEnumerable<T>, LuceneVersion, bool)
Returns a copy of this IEnumerable<T> as a new instance of CharArraySet with the
specified matchVersion and ignoreCase.
Declaration
public static CharArraySet ToCharArraySet<T>(this IEnumerable<T> collection, LuceneVersion matchVersion, bool ignoreCase)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<T> | collection | This collection.  | 
      
| LuceneVersion | matchVersion | Compatibility match version.  | 
      
| bool | ignoreCase | 
  | 
      
Returns
| Type | Description | 
|---|---|
| CharArraySet | A copy of this IEnumerable<T> as a CharArraySet.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The type of collection. Typically a string or char[].  | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | 
  |