Boolean int conversion issue
There is no implicit conversion of a bool to an int. Only an explicit one: Convert.ToInt32(someBool) // or… someBool ? 1 : 0 From that site you linked: First, you cannot implicitly convert from bool to int. The C# compiler uses this rule to enforce program correctness. It is the same rule that mandates you … Read more