-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Austin edited this page Jul 3, 2016
·
1 revision
Welcome to the AtomFormat wiki!
AtomFormat is an attempt to reduce common code for formatting objects into very easy to read methods.
A very early example would be the common code:
decimal currency = new decimal();
System.Globalization.CultureInfo newCulture = new System.Globalization.CultureInfo("ja-JP");
var currencyString = String.Format(newCulture, "{0:C}", CurrencyAmount);
where there is potential for rewriting similar code and a requirement to remember or lookup country codes to instead use AtomFormat as below:
decimal currency = 50005.27;
Console.WriteLine(curreny.ToCurrencyOf(Countries.JAPAN));