c# - Configuring CurrentCulture and CurrentUICulture with different parameters -
I am using c # .3.33 and I want to define the decimal separator of the current culture setting from comma to dot I want to change, but at the same time I want the user to control the numeric password as the decimal separator. So I tried to change my culture setting below
CultureInfo newUIculture = New CultureInfo ("tr-TR"); NewUIculture.NumberFormat.CurrencyDecimalSeparator = ","; NewUIculture.NumberFormat.CurrencyGroupSeparator = "."; NewUIculture.NumberFormat.NumberDecimalSeparator = ","; NewUIculture.NumberFormat.NumberGroupSeparator = "."; NewUIculture.NumberFormat.PercentDecimalSeparator = ","; NewUIculture.NumberFormat.PercentGroupSeparator = "."; // application Current uk agriculture = new uiculture; // This line giving error Thread Existing content Agriculture Eukulcher = new UICulture; // This line culture does not work in the Enix (New York) = New Culture Infoc ("TR-TR"); NewCulture.NumberFormat.CurrencyDecimalSeparator = "."; NewCulture.NumberFormat.CurrencyGroupSeparator = ""; NewCulture.NumberFormat.NumberDecimalSeparator = "."; NewCulture.NumberFormat.NumberGroupSeparator = ""; NewCulture.NumberFormat.PercentDecimalSeparator = "."; NewCulture.NumberFormat.PercentGroupSeparator = ""; Application.computer = new culture; // This is a work fine The current culture settings work fine but the installation of the current UIChat does not work because I specify the parameters, how do I configure both settings with those parameters Can i do
The current Luke is used to select agricultural uses, which resources files should be loaded. Current culture determines the result of culture-dependent tasks like formatting dates and numbers. So the behavior you are seeing is expected: you should use the current culture.
Comments
Post a Comment