Dela via


BindConverter.FormatValue Method

Definition

Overloads

FormatValue(Boolean, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Nullable<DateTimeOffset>, String, CultureInfo)

Formats the provided value as a String.

FormatValue(Nullable<DateTime>, String, CultureInfo)

Formats the provided value as a String.

FormatValue(Nullable<DateOnly>, String, CultureInfo)

Formats the provided value as a String.

FormatValue(DateTimeOffset, String, CultureInfo)

Formats the provided value as a String.

FormatValue(DateTime, String, CultureInfo)

Formats the provided value as a String.

FormatValue(DateOnly, String, CultureInfo)

Formats the provided value as a String.

FormatValue(TimeOnly, CultureInfo)

Formats the provided value as a String.

FormatValue(String, CultureInfo)

Formats the provided value as a String.

FormatValue(Single, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Nullable<TimeOnly>, CultureInfo)

Formats the provided value as a String.

FormatValue(Nullable<Single>, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Nullable<Int64>, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Nullable<Int32>, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Nullable<TimeOnly>, String, CultureInfo)

Formats the provided value as a String.

FormatValue(Nullable<Int16>, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Nullable<Decimal>, CultureInfo)

Formats the provided value as a String.

FormatValue(Nullable<DateTimeOffset>, CultureInfo)

Formats the provided value as a String.

FormatValue(Nullable<DateTime>, CultureInfo)

Formats the provided value as a String.

FormatValue(Nullable<DateOnly>, CultureInfo)

Formats the provided value as a String.

FormatValue(Nullable<Boolean>, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Int64, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Int32, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Int16, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Double, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(Decimal, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(DateTimeOffset, CultureInfo)

Formats the provided value as a String.

FormatValue(DateTime, CultureInfo)

Formats the provided value as a String.

FormatValue(DateOnly, CultureInfo)

Formats the provided value as a String.

FormatValue(Nullable<Double>, CultureInfo)

Formats the provided value for inclusion in an attribute.

FormatValue(TimeOnly, String, CultureInfo)

Formats the provided value as a String.

FormatValue<T>(T, CultureInfo)

Formats the provided value as a String.

FormatValue(Boolean, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static bool FormatValue(bool value, System.Globalization.CultureInfo? culture = default);
public static bool FormatValue(bool value, System.Globalization.CultureInfo culture = default);
static member FormatValue : bool * System.Globalization.CultureInfo -> bool
Public Shared Function FormatValue (value As Boolean, Optional culture As CultureInfo = Nothing) As Boolean

Parameters

value
Boolean

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<DateTimeOffset>, String, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(DateTimeOffset? value, string format, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(DateTimeOffset? value, string format, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<DateTimeOffset> * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateTimeOffset), format As String, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<DateTimeOffset>

The value to format.

format
String

The format to use. Provided to ToString(String, IFormatProvider).

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<DateTime>, String, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(DateTime? value, string? format, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(DateTime? value, string format, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<DateTime> * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateTime), format As String, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<DateTime>

The value to format.

format
String

The format to use. Provided to ToString(String, IFormatProvider).

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<DateOnly>, String, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(DateOnly? value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<DateOnly> * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateOnly), format As String, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<DateOnly>

The value to format.

format
String

The format to use. Provided to ToString(String, IFormatProvider).

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(DateTimeOffset, String, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string FormatValue(DateTimeOffset value, string format, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(DateTimeOffset value, string format, System.Globalization.CultureInfo culture = default);
static member FormatValue : DateTimeOffset * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateTimeOffset, format As String, Optional culture As CultureInfo = Nothing) As String

Parameters

value
DateTimeOffset

The value to format.

format
String

The format to use. Provided to ToString(String, IFormatProvider).

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(DateTime, String, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string FormatValue(DateTime value, string format, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(DateTime value, string format, System.Globalization.CultureInfo culture = default);
static member FormatValue : DateTime * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateTime, format As String, Optional culture As CultureInfo = Nothing) As String

Parameters

value
DateTime

The value to format.

format
String

The format to use. Provided to ToString(String, IFormatProvider).

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(DateOnly, String, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string FormatValue(DateOnly value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : DateOnly * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateOnly, format As String, Optional culture As CultureInfo = Nothing) As String

Parameters

value
DateOnly

The value to format.

format
String

The format to use. Provided to ToString(String, IFormatProvider).

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(TimeOnly, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string FormatValue(TimeOnly value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : TimeOnly * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As TimeOnly, Optional culture As CultureInfo = Nothing) As String

Parameters

value
TimeOnly

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(String, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(string? value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(string value, System.Globalization.CultureInfo culture = default);
static member FormatValue : string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As String, Optional culture As CultureInfo = Nothing) As String

Parameters

value
String

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Single, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string FormatValue(float value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(float value, System.Globalization.CultureInfo culture = default);
static member FormatValue : single * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Single, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Single

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<TimeOnly>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(TimeOnly? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<TimeOnly> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of TimeOnly), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<TimeOnly>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<Single>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string? FormatValue(float? value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(float? value, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<single> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Single), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<Single>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<Int64>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string? FormatValue(long? value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(long? value, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<int64> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Long), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<Int64>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<Int32>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string? FormatValue(int? value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(int? value, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<int> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Integer), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<Int32>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<TimeOnly>, String, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(TimeOnly? value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<TimeOnly> * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of TimeOnly), format As String, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<TimeOnly>

The value to format.

format
String

The format to use. Provided to ToString(String, IFormatProvider).

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<Int16>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string? FormatValue(short? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<int16> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Short), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<Int16>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<Decimal>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(decimal? value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(decimal? value, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<decimal> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Decimal), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<Decimal>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<DateTimeOffset>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(DateTimeOffset? value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(DateTimeOffset? value, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<DateTimeOffset> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateTimeOffset), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<DateTimeOffset>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<DateTime>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(DateTime? value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(DateTime? value, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<DateTime> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateTime), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<DateTime>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<DateOnly>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string? FormatValue(DateOnly? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<DateOnly> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateOnly), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<DateOnly>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<Boolean>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static bool? FormatValue(bool? value, System.Globalization.CultureInfo? culture = default);
public static bool? FormatValue(bool? value, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<bool> * System.Globalization.CultureInfo -> Nullable<bool>
Public Shared Function FormatValue (value As Nullable(Of Boolean), Optional culture As CultureInfo = Nothing) As Nullable(Of Boolean)

Parameters

value
Nullable<Boolean>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Int64, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string FormatValue(long value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(long value, System.Globalization.CultureInfo culture = default);
static member FormatValue : int64 * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Long, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Int64

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Int32, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string? FormatValue(int value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(int value, System.Globalization.CultureInfo culture = default);
static member FormatValue : int * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Integer, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Int32

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Int16, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string FormatValue(short value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : int16 * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Short, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Int16

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Double, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string? FormatValue(double value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(double value, System.Globalization.CultureInfo culture = default);
static member FormatValue : double * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Double, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Double

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Decimal, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string FormatValue(decimal value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(decimal value, System.Globalization.CultureInfo culture = default);
static member FormatValue : decimal * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Decimal, Optional culture As CultureInfo = Nothing) As String

Parameters

value
Decimal

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(DateTimeOffset, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string FormatValue(DateTimeOffset value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(DateTimeOffset value, System.Globalization.CultureInfo culture = default);
static member FormatValue : DateTimeOffset * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateTimeOffset, Optional culture As CultureInfo = Nothing) As String

Parameters

value
DateTimeOffset

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(DateTime, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string FormatValue(DateTime value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(DateTime value, System.Globalization.CultureInfo culture = default);
static member FormatValue : DateTime * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateTime, Optional culture As CultureInfo = Nothing) As String

Parameters

value
DateTime

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(DateOnly, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string FormatValue(DateOnly value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : DateOnly * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateOnly, Optional culture As CultureInfo = Nothing) As String

Parameters

value
DateOnly

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(Nullable<Double>, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value for inclusion in an attribute.

public static string? FormatValue(double? value, System.Globalization.CultureInfo? culture = default);
public static string FormatValue(double? value, System.Globalization.CultureInfo culture = default);
static member FormatValue : Nullable<double> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Double), Optional culture As CultureInfo = Nothing) As String

Parameters

value
Nullable<Double>

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue(TimeOnly, String, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static string FormatValue(TimeOnly value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : TimeOnly * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As TimeOnly, format As String, Optional culture As CultureInfo = Nothing) As String

Parameters

value
TimeOnly

The value to format.

format
String

The format to use. Provided to ToString(String, IFormatProvider).

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to

FormatValue<T>(T, CultureInfo)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Formats the provided value as a String.

public static object? FormatValue<T>(T value, System.Globalization.CultureInfo? culture = default);
public static object FormatValue<T>(T value, System.Globalization.CultureInfo culture = default);
static member FormatValue : 'T * System.Globalization.CultureInfo -> obj
Public Shared Function FormatValue(Of T) (value As T, Optional culture As CultureInfo = Nothing) As Object

Type Parameters

T

Parameters

value
T

The value to format.

culture
CultureInfo

The CultureInfo to use while formatting. Defaults to CurrentCulture.

Returns

The formatted value.

Applies to