Exemplo n.º 1
0
        public static bool TryParseExact(string s, string format, IFormatProvider provider, DateTimeStyles style, out DateTimeBase result)
        {
            DateTime resultAsDateTime;
            bool     returnValue = DateTime.TryParseExact(s, format, provider, style, out resultAsDateTime);

            result = new DateTimeWrapper(resultAsDateTime);
            return(returnValue);
        }
Exemplo n.º 2
0
        public static bool TryParse(string s, out DateTimeBase result)
        {
            DateTime resultAsDateTime;
            bool     returnValue = DateTime.TryParse(s, out resultAsDateTime);

            result = new DateTimeWrapper(resultAsDateTime);
            return(returnValue);
        }