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
formattable
FormattableString
TranslatableString(string)
public TranslatableString(string value)
Parameters
value
string
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
other
TranslatableStringAn 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
other
stringAn 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
translatable
TranslatableString
Returns
implicit operator TranslatableString(FormattableString?)
Setter
public static implicit operator TranslatableString(FormattableString? value)
Parameters
value
FormattableString
Returns
implicit operator TranslatableString(string?)
Setter
public static implicit operator TranslatableString(string? value)
Parameters
value
string