using System;
using System.Globalization;
namespace Nethereum.Util
{
public static class FormattingExtensions
{
///
/// Converts formattable value to string in a culture-independent way.
///
public static string ToStringInvariant(this T formattable) where T : IFormattable
{
if (formattable == null) throw new ArgumentNullException(nameof(formattable));
return formattable.ToString(null, CultureInfo.InvariantCulture);
}
}
}