Struct PortableObjectKey
Represents a key for the PortableObject translation.
Implements
Inherited Members
Namespace: MGR.PortableObject
Assembly: MGR.PortableObject.dll
Syntax
public struct PortableObjectKey : IEquatable<PortableObjectKey>
Constructors
| Edit this page View SourcePortableObjectKey(string)
Creates a new key.
Declaration
public PortableObjectKey(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The Id of the key. |
PortableObjectKey(string, string)
Creates a new key.
Declaration
public PortableObjectKey(string context, string id)
Parameters
Type | Name | Description |
---|---|---|
string | context | The Context of the key. |
string | id | The Id of the key. |
PortableObjectKey(string?, string, string?)
Creates a new key.
Declaration
public PortableObjectKey(string? context, string id, string? idPlural)
Parameters
Type | Name | Description |
---|---|---|
string | context | The Context of the key. |
string | id | The Id of the key. |
string | idPlural | The Plural Id of the key. |
Properties
| Edit this page View SourceContext
Gets the (optional) context of the key.
Declaration
public readonly string? Context { get; }
Property Value
Type | Description |
---|---|
string |
Id
Gets the Id of the key.
Declaration
public readonly string Id { get; }
Property Value
Type | Description |
---|---|
string |
IdPlural
Gets the plural Id of the key.
Declaration
public readonly string? IdPlural { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceEquals(PortableObjectKey)
Declaration
public readonly bool Equals(PortableObjectKey other)
Parameters
Type | Name | Description |
---|---|---|
PortableObjectKey | other |
Returns
Type | Description |
---|---|
bool |
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
int |