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?)

    Indicates whether this instance and a specified object are equal.

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

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    View Source

    Equals(CompositeIntStringKey)

    Indicates whether the current object is equal to another object of the same type.

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

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    View Source

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Operators

    View Source

    operator ==(CompositeIntStringKey, CompositeIntStringKey)

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

    operator !=(CompositeIntStringKey, CompositeIntStringKey)

    Declaration
    public static bool operator !=(CompositeIntStringKey key1, CompositeIntStringKey key2)
    Parameters
    Type Name Description
    CompositeIntStringKey key1
    CompositeIntStringKey key2
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX