public bool Contains(ShortTime target) { bool flag = this.shortTimeStart.CompareTo(target) <= 0; bool flag2 = this.shortTimeEnd.CompareTo(target) >= 0; return(flag && flag2); }
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!"); } }
public ShortTimeScope() { this.shortTimeStart = new ShortTime(0, 0, 0); this.shortTimeEnd = new ShortTime(0x18, 0, 0); }