Struct CompositeNStringNStringKey
Represents a composite key of (string, string) for fast dictionaries.
Namespace: Umbraco.Cms.Core.Collections
Assembly: Umbraco.Core.dll
Syntax
public struct CompositeNStringNStringKey
Remarks
The string parts of the key are case-insensitive.
Null is a valid value for both parts.
Constructors
View SourceCompositeNStringNStringKey(string?, string?)
Initializes a new instance of the CompositeNStringNStringKey struct.
Declaration
public CompositeNStringNStringKey(string? key1, string? key2)
Parameters
| Type | Name | Description |
|---|---|---|
| string | 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(CompositeNStringNStringKey)
Declaration
public bool Equals(CompositeNStringNStringKey other)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeNStringNStringKey | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Operators
View Sourceoperator ==(CompositeNStringNStringKey, CompositeNStringNStringKey)
Determines whether two CompositeNStringNStringKey instances are equal.
Declaration
public static bool operator ==(CompositeNStringNStringKey key1, CompositeNStringNStringKey key2)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeNStringNStringKey | key1 | The first key to compare. |
| CompositeNStringNStringKey | key2 | The second key to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
operator !=(CompositeNStringNStringKey, CompositeNStringNStringKey)
Determines whether two CompositeNStringNStringKey instances are not equal.
Declaration
public static bool operator !=(CompositeNStringNStringKey key1, CompositeNStringNStringKey key2)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeNStringNStringKey | key1 | The first key to compare. |
| CompositeNStringNStringKey | key2 | The second key to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|