Click or drag to resize

LocalizedString Class

Localized string container where a string is represented by its international value and a collection of translations to other languages.
Inheritance Hierarchy
SystemObject
  Sportradar.SDK.CommonLocalizedString

Namespace: Sportradar.SDK.Common
Assembly: Common (in Common.dll) Version: 2.28.0.0
Syntax
C#
[SerializableAttribute]
public class LocalizedString : IEquatable<LocalizedString>

The LocalizedString type exposes the following members.

Constructors
 NameDescription
Public methodLocalizedString Constructs a new localized string.
Top
Properties
 NameDescription
Public propertyAvailableTranslationLanguages Available language codes this instance is translated to. For instance "de", "en" and so on.
Public propertyInternational Returns international string.
Top
Methods
 NameDescription
Public methodAddTranslation Adds a new translation to the string. Overrides the previous language translations if existed.
Public methodEquals(LocalizedString) Check for equality.
Public methodEquals(Object) Check for equality.
(Overrides ObjectEquals(Object))
Public methodGetHashCode Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode)
Public methodGetTranslation Returns translation for the specified language. Falls back to international string if translation does not exist.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString Returns international string
(Overrides ObjectToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(LocalizedString, LocalizedString) Check for equality.
Public operatorStatic memberInequality(LocalizedString, LocalizedString) Check for non-equality.
Top
Extension Methods
 NameDescription
Public Extension MethodCloneWithValueReplacement
(Defined by DiffEngine)
Top
See Also