[]
Creates a new formatter with null FormatString and default NumberFormatInfo
and DateTimeFormatInfo (copied from the current culture).
public GeneralFormatter()
Public Sub New()
Creates a new formatter with the specified format and default formatting information (copied from the current culture).
public GeneralFormatter(string formatString, bool isDateFormat)
Public Sub New(formatString As String, isDateFormat As Boolean)
Type | Name | Description |
---|---|---|
string | formatString | String with format information |
bool | isDateFormat | Whether to consider the number as a date and format it as such |
Creates a new formatter with the specified format and formatting information (copied from the current culture).
public GeneralFormatter(string formatString, IFormatProvider formatInfo)
Public Sub New(formatString As String, formatInfo As IFormatProvider)
Type | Name | Description |
---|---|---|
string | formatString | String with format information |
IFormatProvider | formatInfo | IFormatProvider interface with number and date-time format information |
Creates a new formatter from serialization.
protected GeneralFormatter(SerializationInfo info, StreamingContext context)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
Type | Name | Description |
---|---|---|
SerializationInfo | info | SerializationInfo |
StreamingContext | context | StreamingContext |