Questions tagged as 'culture'

1
answer

What is CultureInfo.InvariantCulture?

I have installed Resharper and in this section x.Id.ToString() it suggests changing to x.Id.ToString(CultureInfo.InvariantCulture) . What is CultureInfo.InvariantCulture and why is it better?     
asked by 06.10.2015 / 20:03
2
answers

Changing System Culture

Developing a system for a Bolivian company, on a windows with culture pt-BR , some objects like datetimepicker have their internal components according to the language in which the system was installed. Home And in my case, when thi...
asked by 23.09.2014 / 16:10
3
answers

Understand "," as "." when formatting

My Visual Studio is misunderstanding what I type (console): using System; namespace Uri_CSharp { class URI { static void Main(string[] args) { double raio = double.Parse(Console.ReadLine()), area;...
asked by 17.07.2016 / 15:59
2
answers

Devexpress spin - culture info

I'm using the spinedit of devexpress, with MVC, it's a decimal field, but I need the punctuation of the number to be a period and not a comma, I need to put his culture as "en-US", how to do it? / p>     
asked by 11.08.2014 / 15:01
2
answers

Date format problems

I am developing a system using C # MVC and JQuery UI and at the moment I am having problems with date formats, in the inputs is the date in the correct format "dd / mm / yyyy" but the server is receiving the date in the format " mm / dd / yyyy "....
asked by 08.11.2014 / 02:11
2
answers

ASP.Net - Make Page.UICulture return culture in "pt-BR" format

Globalization was defined in Web.config : <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="pt-BR" uiCulture="pt-BR"/> However, when I read Page.UICulture , I get "Português (Brasil)" , I want to return...
asked by 24.07.2017 / 15:00
1
answer

How to convert latitude / longitude to Double in C #

I have a problem, as it has a variable of type string and I need to convert to type double without losing the "dot". Example: string latitude = "-8.709006" when converting is equal to: -8.709006 But until then I have...
asked by 25.02.2015 / 14:35
1
answer

Change MonthCalendar Culture

Is it possible to change the date format of the MonthCalendar object of a WinForms application? It happens that the culture selected on a client's station is Polish and this is causing an error in handling application dates. I tried...
asked by 16.06.2016 / 23:23
2
answers

C # returns an HTML string

Good, I use the following code to convert a numeric value according to the user's culture: value="@(Model.KnowAcquisition.Cost.HasValue ? Model.KnowAcquisition.Cost.Value.ToString("n2", CultureInfo.CurrentCulture).ToString() : string.Emp...
asked by 10.10.2017 / 18:45