Пример #1
0
        /// <inheritdoc />
        public bool TryParseExact(string s, string format, IFormatProvider provider, DateTimeStyles style, out IDateTime result)
        {
            DateTime dtResult;
            bool     returnValue = DateTime.TryParseExact(s, format, provider, style, out dtResult);

            result = new DateTimeWrap(dtResult);
            return(returnValue);
        }
Пример #2
0
        /// <inheritdoc />
        public bool TryParse(string s, out IDateTime result)
        {
            DateTime dtResult;
            bool     returnValue = DateTime.TryParse(s, out dtResult);

            result = new DateTimeWrap(dtResult);
            return(returnValue);
        }