You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Input/Range.cs

30 lines
485 B

2 years ago
namespace Connected.Components;
public class Range<T>
{
public T Start { get; set; }
public T End { get; set; }
public Range()
{
}
public Range(T start, T end)
{
Start = start;
End = end;
}
public override bool Equals(object obj)
{
return obj is Range<T> r && null != r.Start && r.Start.Equals(Start) && null != r.End && r.End.Equals(End);
}
public override int GetHashCode()
{
return base.GetHashCode();
}
}