---------------------------------------------------------------------------------------------------------------
using System.Globalization;
---------------------------------------------------------------------------------------------------------------
Thread.CurrentThread.CurrentCulture = new CultureInfo("tr-TR");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("tr-TR");
---------------------------------------------------------------------------------------------------------------
Veya
---------------------------------------------------------------------------------------------------------------
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
Yazmanız yeterli.
Ayrıca sadece belirli bir ayarı set etmek istiyorsanız aşağıdaki gibi kullanabilirsiniz.
---------------------------------------------------------------------------------------------------------------
Thread.CurrentThread.CurrentCulture = new CultureInfo("tr-TR");Thread.CurrentThread.CurrentUICulture = new CultureInfo("tr-TR");
System.Threading.Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator= ".";
---------------------------------------------------------------------------------------------------------------
0 yorum:
Yorum Gönder