30 lines
485 B
C#
30 lines
485 B
C#
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();
|
|
}
|
|
}
|