Can somone explain why I get this error on this code?
Error 1 The type 'ConsoleApplication1.TestClass' already contains a definition for 'IsThisOK'
class TestClass
{
public bool IsThisOK { get; set; }
public static bool IsThisOK(string str)
{
return true;
}
public static void Test()
{
TestClass c = new TestClass();
c.IsThisOK = IsThisOK("Hello");
}
}