Search Results for

    Show / Hide Table of Contents
    View Source

    Struct CompositeStringStringKey

    Represents a composite key of (string, string) for fast dictionaries.

    Namespace: Umbraco.Cms.Core.Collections
    Assembly: Umbraco.Core.dll
    Syntax
    public struct CompositeStringStringKey
    Remarks

    The string parts of the key are case-insensitive.

    Null is NOT a valid value for neither parts.

    Constructors

    View Source

    CompositeStringStringKey(string?, string?)

    Initializes a new instance of the CompositeStringStringKey struct.

    Declaration
    public CompositeStringStringKey(string? key1, string? key2)
    Parameters
    Type Name Description
    string key1
    string key2

    Methods

    View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    View Source

    Equals(CompositeStringStringKey)

    Declaration
    public bool Equals(CompositeStringStringKey other)
    Parameters
    Type Name Description
    CompositeStringStringKey other
    Returns
    Type Description
    bool
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Operators

    View Source

    operator ==(CompositeStringStringKey, CompositeStringStringKey)

    Determines whether two CompositeStringStringKey instances are equal.

    Declaration
    public static bool operator ==(CompositeStringStringKey key1, CompositeStringStringKey key2)
    Parameters
    Type Name Description
    CompositeStringStringKey key1

    The first key to compare.

    CompositeStringStringKey key2

    The second key to compare.

    Returns
    Type Description
    bool

    true if the two keys are equal; otherwise, false.

    View Source

    operator !=(CompositeStringStringKey, CompositeStringStringKey)

    Determines whether two CompositeStringStringKey instances are not equal.

    Declaration
    public static bool operator !=(CompositeStringStringKey key1, CompositeStringStringKey key2)
    Parameters
    Type Name Description
    CompositeStringStringKey key1

    The first key to compare.

    CompositeStringStringKey key2

    The second key to compare.

    Returns
    Type Description
    bool

    true if the two keys are not equal; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX