I have to compare two colors in SFML.net. In C++ it's possible because there is defined ==
operator. In SFML.net Visual Studio won't let me compile the code. How to resolve that?
Error:
1>E:\DB\Dropbox\Repozytoria\ARDSQL GUI\Sources\StatusBar.cs(91,17,91,70): error CS0019: Operator '==' cannot be applied to operands of type 'SFML.Graphics.Color' and 'SFML.Graphics.Color'
My code:
if (base.barRectangle.FillColor == Color.Green)
{
///Do something...
}