Search Results for

    Show / Hide Table of Contents
    View Source

    Struct CompositeIntStringKey

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

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

    The integer part of the key must be greater than, or equal to, zero.

    The string part of the key is case-insensitive.

    Null is a valid value for both parts.

    Constructors

    View Source

    CompositeIntStringKey(int?, string?)

    Initializes a new instance of the CompositeIntStringKey struct.

    Declaration
    public CompositeIntStringKey(int? key1, string? key2)
    Parameters
    Type Name Description
    int? 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(CompositeIntStringKey)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Operators

    View Source

    operator ==(CompositeIntStringKey, CompositeIntStringKey)

    Determines whether two CompositeIntStringKey instances are equal.

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

    The first key to compare.

    CompositeIntStringKey key2

    The second key to compare.

    Returns
    Type Description
    bool

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

    View Source

    operator !=(CompositeIntStringKey, CompositeIntStringKey)

    Determines whether two CompositeIntStringKey instances are not equal.

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

    The first key to compare.

    CompositeIntStringKey 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