Add hash function to Gradient.

This commit is contained in:
H. Utku Maden 2024-12-24 22:10:24 +03:00
parent f8dea00021
commit 6ad11812e2

@ -155,5 +155,14 @@ namespace Dashboard
{
_stops.RemoveAt(index);
}
public override int GetHashCode()
{
HashCode code = new HashCode();
code.Add(Count);
foreach (GradientStop item in this)
code.Add(item.GetHashCode());
return code.ToHashCode();
}
}
}