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?)
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 |
Equals(CompositeNStringNStringKey)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CompositeNStringNStringKey other)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeNStringNStringKey | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
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 Sourceoperator ==(CompositeNStringNStringKey, CompositeNStringNStringKey)
Declaration
public static bool operator ==(CompositeNStringNStringKey key1, CompositeNStringNStringKey key2)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeNStringNStringKey | key1 | |
| CompositeNStringNStringKey | key2 |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(CompositeNStringNStringKey, CompositeNStringNStringKey)
Declaration
public static bool operator !=(CompositeNStringNStringKey key1, CompositeNStringNStringKey key2)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeNStringNStringKey | key1 | |
| CompositeNStringNStringKey | key2 |
Returns
| Type | Description |
|---|---|
| bool |