jeudi 21 novembre 2019

Cannot apply operator '>=' to operator of type X and 'float'

I am new to stackoverflow and here to learn.

How can one apply the operator '>=' to an If statement in C# when they are not of the same data type?

MyClass MyClass (instance variable)

if (usingMyClass.MyClass >= price (which is float))

Any solutions?

Aucun commentaire:

Enregistrer un commentaire