Gets or sets the default culture for all instances of the
DecimalFormat class.
Namespace: Dapfor.Net.FormatsAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
| C# |
|---|
public static IFormatProvider DefaultCulture { get; set; } |
| Visual Basic |
|---|
Public Shared Property DefaultCulture As IFormatProvider
Get
Set |
| Visual C++ |
|---|
public:
static property IFormatProvider^ DefaultCulture {
IFormatProvider^ get ();
void set (IFormatProvider^ value);
} |
| F# |
|---|
static member DefaultCulture : IFormatProvider with get, set
|
Property Value
Type:
IFormatProviderThe default culture.
Examples
This example demonstrates how to set invariant culture as a default format provider for all
instances of
DecimalFormat class.
| | Copy |
|---|
DecimalFormat.DefaultCulture = CultureInfo.InvariantCulture; |
See Also