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?
Constructor
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Mar 5, 2010, 4:43 PM EST
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 Desai3 reputationPosted Mar 6, 2010, 2:53 PM EST