Table of Contents

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

langCode string
translationKey string

Fields

LanguageCode

The language code for this row.

public readonly string LanguageCode

Field Value

string

TranslationKey

Unique id of the translation for this row.

public readonly string TranslationKey

Field Value

string

Properties

EqualityComparer

public static IEqualityComparer<TranslationLanguageKey> EqualityComparer { get; }

Property Value

IEqualityComparer<TranslationLanguageKey>

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

key TranslationLanguageKey

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

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.