Class TranslatableString
- Namespace
- Dynamicweb.CoreUI
- Assembly
- Dynamicweb.CoreUI.dll
Object to use for any string that needs to be translated. Use the same way as a string. I.e.
TranslatableString Label = 'some'; instead of string Label = 'some';
public class TranslatableString : IEquatable<TranslatableString>, IEquatable<string>
- Inheritance
-
TranslatableString
- Implements
- Inherited Members
Constructors
TranslatableString()
public TranslatableString()
TranslatableString(FormattableString)
public TranslatableString(FormattableString formattable)
Parameters
formattableFormattableString
TranslatableString(string)
public TranslatableString(string value)
Parameters
valuestring
TranslatableString(string, params object?[])
public TranslatableString(string formattableString, params object?[] args)
Parameters
Properties
FormatArgs
public ICollection<object?> FormatArgs { get; }
Property Value
Methods
Equals(TranslatableString?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TranslatableString? other)
Parameters
otherTranslatableStringAn object to compare with this object.
Returns
Equals(string?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(string? other)
Parameters
otherstringAn object to compare with this object.
Returns
ToString()
Returns a string that represents the current object.
public override string? ToString()
Returns
- string
A string that represents the current object.
Operators
implicit operator string?(TranslatableString)
Getter
public static implicit operator string?(TranslatableString translatable)
Parameters
translatableTranslatableString
Returns
implicit operator TranslatableString(FormattableString?)
Setter
public static implicit operator TranslatableString(FormattableString? value)
Parameters
valueFormattableString
Returns
implicit operator TranslatableString(string?)
Setter
public static implicit operator TranslatableString(string? value)
Parameters
valuestring