using System; namespace Be.Timvw.Framework.Domain { public interface IRange : IComparable> { /// /// Gets and sets the Begin /// T Begin { get; set; } /// /// Gets and sets the End /// T End { get; set; } /// /// Tests if t is included /// /// /// true if t is included bool Includes(T t); /// /// Tests if the range is included /// /// /// true if range is included bool Includes(IRange range); /// /// Tests is the range overlaps /// /// /// true if range overlaps bool Overlaps(IRange range); } }