Add custom hashcode to SolidBrush.

This commit is contained in:
2024-12-14 19:43:50 +03:00
parent 34720970ff
commit 1a1e761326

View File

@@ -1,4 +1,5 @@
using System.Drawing; using System;
using System.Drawing;
namespace Dashboard.Drawing namespace Dashboard.Drawing
{ {
@@ -22,6 +23,11 @@ namespace Dashboard.Drawing
{ {
Color = color; Color = color;
} }
public override int GetHashCode()
{
return HashCode.Combine(Kind, Color);
}
} }
public class SolidBrushExtension : DrawExtension public class SolidBrushExtension : DrawExtension