Table of Contents

Interface IStringFormatFunctions

Namespace
NextORM.Core
Assembly
nextorm.core.dll

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

value string
clrFormat string

Returns

string

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

value string
specifier char
precision int

Returns

string

SupportsDateFormat(string)

True when the CLR custom date/time format clrFormat can be rendered exactly.

bool SupportsDateFormat(string clrFormat)

Parameters

clrFormat string

Returns

bool

SupportsNumber(char)

True when the numeric standard specifier specifier (N, F, D, X) can be rendered exactly.

bool SupportsNumber(char specifier)

Parameters

specifier char

Returns

bool