I18N.DotNet v1.3.1
|
Represents just a string. This class is used to allow interpolated strings to preferably be passed as FormattableString instead of string to methods that overload both types. More...
Public Member Functions | |
PlainString (string value) | |
Default constructor. More... | |
Static Public Member Functions | |
static implicit | operator PlainString (string value) |
Converts a string value to a PlainString. More... | |
static implicit | operator PlainString (FormattableString value) |
Converts a FormattableString value to a PlainString. More... | |
Properties | |
string | Value [get] |
Represents just a string. This class is used to allow interpolated strings to preferably be passed as FormattableString instead of string to methods that overload both types.
PlainString | ( | string | value | ) |
Default constructor.
|
static |
Converts a FormattableString value to a PlainString.
This implicit operator is needed to avoid FormattableString values to be automatically converted to string and then to PlainString when resolving parameter overloads.
value | Value. |
InvalidOperationException | Always thrown. |
|
static |
Converts a string value to a PlainString.
value | Value. |
|
get |
Value of the string.