NumberFormatInfo properties: Currency
using System;
using System.Globalization;
using System.Text;
class SamplesNumberFormatInfo {
public static void Main() {
NumberFormatInfo myInv = NumberFormatInfo.InvariantInfo;
UnicodeEncoding myUE = new UnicodeEncoding( true, false );
byte[] myCodes;
Console.WriteLine( "CurrencyDecimalDigits{0}", myInv.CurrencyDecimalDigits );
Console.WriteLine( "CurrencyDecimalSeparator{0}", myInv.CurrencyDecimalSeparator );
Console.WriteLine( "CurrencyGroupSeparator{0}", myInv.CurrencyGroupSeparator );
Console.WriteLine( "CurrencyGroupSizes{0}", myInv.CurrencyGroupSizes[0] );
Console.WriteLine( "CurrencyNegativePattern{0}", myInv.CurrencyNegativePattern );
Console.WriteLine( "CurrencyPositivePattern{0}", myInv.CurrencyPositivePattern );
}
}
Related examples in the same category