示例#1
0
        public bool Contains(ShortTime target)
        {
            bool flag  = this.shortTimeStart.CompareTo(target) <= 0;
            bool flag2 = this.shortTimeEnd.CompareTo(target) >= 0;

            return(flag && flag2);
        }
示例#2
0
 public ShortTimeScope(ShortTime first, ShortTime later)
 {
     this.shortTimeStart = new ShortTime(0, 0, 0);
     this.shortTimeEnd   = new ShortTime(0x18, 0, 0);
     this.shortTimeStart = first;
     this.shortTimeEnd   = later;
     if (first.CompareTo(later) >= 0)
     {
         throw new Exception("the parameter later must be greatter than first!");
     }
 }
示例#3
0
 public ShortTimeScope()
 {
     this.shortTimeStart = new ShortTime(0, 0, 0);
     this.shortTimeEnd   = new ShortTime(0x18, 0, 0);
 }