Например, у меня есть такой класс:
Код: Выделить всё
public class test
{
public static string NA = "n/a";
public static DateTime DateParser(string dateToBeParsed)
{
DateTime returnValue = new DateTime();
DateTime.TryParse(dateToBeParsed, GetCulture(), System.Globalization.DateTimeStyles.AssumeLocal , out returnValue);
return returnValue;
}
}
Подробнее здесь: https://stackoverflow.com/questions/116 ... of-a-class
Мобильная версия