Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class DictionaryExtensions

    Extensions to IDictionary<TKey, TValue> for CharArrayDictionary<TValue>.

    Inheritance
    object
    DictionaryExtensions
    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 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

    dictionary is null.

    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

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

    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

    dictionary 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.