Struct CompositeTypeTypeKey
Represents a composite key of (Type, Type) for fast dictionaries.
Namespace: Umbraco.Cms.Core.Collections
Assembly: Umbraco.Core.dll
Syntax
public struct CompositeTypeTypeKey
Constructors
View SourceCompositeTypeTypeKey(Type, Type)
Initializes a new instance of the CompositeTypeTypeKey struct.
Declaration
public CompositeTypeTypeKey(Type type1, Type type2)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type1 | |
| Type | type2 |
Properties
View SourceType1
Gets the first type.
Declaration
public readonly Type Type1 { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Type2
Gets the second type.
Declaration
public readonly Type Type2 { get; }
Property Value
| Type | Description |
|---|---|
| Type |
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(CompositeTypeTypeKey)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CompositeTypeTypeKey other)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeTypeTypeKey | 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 ==(CompositeTypeTypeKey, CompositeTypeTypeKey)
Declaration
public static bool operator ==(CompositeTypeTypeKey key1, CompositeTypeTypeKey key2)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeTypeTypeKey | key1 | |
| CompositeTypeTypeKey | key2 |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(CompositeTypeTypeKey, CompositeTypeTypeKey)
Declaration
public static bool operator !=(CompositeTypeTypeKey key1, CompositeTypeTypeKey key2)
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeTypeTypeKey | key1 | |
| CompositeTypeTypeKey | key2 |
Returns
| Type | Description |
|---|---|
| bool |