N
Nick nkw
I am building an asp.net application. However, it had to use a lot of
Convert.ToDatetime or Parse. And I had a lot of the following code:
IFormatProvider provider = new
CultureInfo(ConfigurationManager.AppSettings.Get("culture"));
.... DateTime.Parse(lblDate.Text, provider)...
.... Convert.ToDateTime(..., provider)....
Is refactoring the one line to an singleton worth? Sounds it save a little
bit typing.
Convert.ToDatetime or Parse. And I had a lot of the following code:
IFormatProvider provider = new
CultureInfo(ConfigurationManager.AppSettings.Get("culture"));
.... DateTime.Parse(lblDate.Text, provider)...
.... Convert.ToDateTime(..., provider)....
Is refactoring the one line to an singleton worth? Sounds it save a little
bit typing.