Пример #1
0
 public int CompareTo(SmartDate value)
 {
     if (IsEmpty && value.IsEmpty)
     {
         return(0);
     }
     return(_date.CompareTo(value.Date));
 }
Пример #2
0
        public static bool TryParse(string value, EmptyValue emptyValue, ref SmartDate result)
        {
            DateTime dateResult = DateTime.MinValue;

            if (TryStringToDate(value, emptyValue, ref dateResult))
            {
                result = new SmartDate(dateResult, emptyValue);
                return(true);
            }
            return(false);
        }
Пример #3
0
 public static bool TryParse(string value, ref SmartDate result)
 {
     return(TryParse(value, EmptyValue.MinDate, ref result));
 }