I was trying to declare a constructor in C# and I got following error:
Error 1 'ParentClass': member names cannot be the same as their enclosing type
Hows that? Isn't constructor supposed to have the same name as the class name?
Loading
Kirtan PatelPosted Mar 5, 2010, 9:43 PM
but
you may have made mistake in Code that's why its Showing Error ..check your code if you have defines same class 2 times ?
Kunal DesaiPosted Mar 6, 2010, 7:53 PM