Table of Contents

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

formattableString string
args object[]

Properties

FormatArgs

public ICollection<object?> FormatArgs { get; }

Property Value

ICollection<object>

Methods

Equals(TranslatableString?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(TranslatableString? other)

Parameters

other TranslatableString

An object to compare with this object.

Returns

bool

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

Equals(string?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(string? other)

Parameters

other string

An object to compare with this object.

Returns

bool

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

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

string

implicit operator TranslatableString(FormattableString?)

Setter

public static implicit operator TranslatableString(FormattableString? value)

Parameters

value FormattableString

Returns

TranslatableString

implicit operator TranslatableString(string?)

Setter

public static implicit operator TranslatableString(string? value)

Parameters

value string

Returns

TranslatableString
To top