FormattableExtensions Class
Provides extension methods for IFormattable types to format values using the invariant culture.
public static class FormattableExtensionsMethods
| Name | Description |
|---|---|
| ToStringInvariant<T>(T) | Converts the value to its string representation using the invariant culture. |
| ToStringInvariant<T>(T, string?) | Converts the value to its string representation using the invariant culture and the specified format. |
ToStringInvariant overloads
ToStringInvariant<T>(T)
FormattableExtensions.csConverts the value to its string representation using the invariant culture.
public static string ToStringInvariant<T>(this T value) where T : IFormattableToStringInvariant<T>(T, string?)
FormattableExtensions.csConverts the value to its string representation using the invariant culture and the specified format.
public static string ToStringInvariant<T>(this T value, string? format) where T : IFormattable