Interface IStringFormatFunctions
A dialect's formatting surface for the culture-invariant subset of CLR format specifiers used by
string.Format/$"...{x:fmt}"/x.ToString(fmt). The object also answers whether a
given specifier is expressible exactly, so a provider that can render F/D but not
N rejects the latter instead of dropping the group separators. The object's presence is the
capability; null means the provider cannot render CLR format specifiers at all.
public interface IStringFormatFunctions
- Extension Methods
Methods
RenderDate(string, string)
Renders the CLR custom date/time format clrFormat over the already-rendered value.
string RenderDate(string value, string clrFormat)
Parameters
Returns
RenderNumber(string, char, int)
Renders the numeric standard specifier specifier with
precision fractional (or minimum integral) digits over the already-rendered
value.
string RenderNumber(string value, char specifier, int precision)
Parameters
Returns
SupportsDateFormat(string)
True when the CLR custom date/time format clrFormat can be rendered exactly.
bool SupportsDateFormat(string clrFormat)
Parameters
clrFormatstring
Returns
SupportsNumber(char)
True when the numeric standard specifier specifier (N, F, D, X) can be rendered exactly.
bool SupportsNumber(char specifier)
Parameters
specifierchar