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 SourceCompositeIntStringKey(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 SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(CompositeIntStringKey)
Declaration
public bool Equals(CompositeIntStringKey other)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeIntStringKey | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Operators
View Sourceoperator ==(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 |
|
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 |
|