Struct TranslationLanguageKey
- Namespace
- Uncreated.Warfare.Translations
- Assembly
- Uncreated.Warfare.dll
public readonly struct TranslationLanguageKey : IEquatable<TranslationLanguageKey>
- Implements
- Inherited Members
Constructors
TranslationLanguageKey(string, string)
public TranslationLanguageKey(string langCode, string translationKey)
Parameters
Fields
LanguageCode
The language code for this row.
public readonly string LanguageCode
Field Value
TranslationKey
Unique id of the translation for this row.
public readonly string TranslationKey
Field Value
Properties
EqualityComparer
public static IEqualityComparer<TranslationLanguageKey> EqualityComparer { get; }
Property Value
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
Equals(TranslationLanguageKey)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TranslationLanguageKey key)
Parameters
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.