Last active
August 29, 2015 14:14
-
-
Save bwatts/2d3a0aee92b199f37b2d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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