static class ExtensionMethods {
public static void Demo() {
decimal x = 1234.568M;
Console.WriteLine( x.FormattedUS() );
Console.WriteLine( x.FormattedIT() );
Console.WriteLine( FormattedUS( x ) ); // povoleno tradin voln
Console.WriteLine( FormattedIT( x ) ); // povoleno tradin voln
}

static CultureInfo formatUS = new CultureInfo( "en-US" );
static CultureInfo formatIT = new CultureInfo( "it-IT" );
public static string FormattedUS( this decimal d ) {
	return String.Format( formatIT, "{0:#,0.00}", d );
}

public static string FormattedIT( this decimal d ) {
	return String.Format( formatUS, "{0:#,0.00}", d );
}
}
