Skip to content

Instantly share code, notes, and snippets.

@bwatts
Last active August 29, 2015 14:14
Show Gist options
  • Save bwatts/2d3a0aee92b199f37b2d to your computer and use it in GitHub Desktop.
Save bwatts/2d3a0aee92b199f37b2d to your computer and use it in GitHub Desktop.
public static class Format
{
public static string Invariant(object value)
{
return String.Format(CultureInfo.InvariantCulture, "{0}", value);
}
public static string Current(object value)
{
return String.Format(CultureInfo.CurrentCulture, "{0}", value);
}
}
// Usage:
Format.Invariant(x)
Format.Current(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment