Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class EnumerableExtensions

    Extensions to IEnumerable<T> for CharArraySet.

    Inheritance
    object
    EnumerableExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    collection is null.

    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

    false if and only if the set should be case sensitive otherwise true.

    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

    collection is null.

    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.