C# / Visual Studio

Waffl3s

Well-Known Member
Joined
May 9, 2011
Messages
103
Reaction score
14
Error 7-Ambiguity between 'myFields.anyAttrField' and 'myFields.anyAttrField'


Error 3-The type 'myFields' already contains a definition for 'anyAttrField'

Keep gettign the above errors in one of my classes which I'm using as part of a Web-Part. Just started out Programming and been googling for a bit so no luck. Any help would be appreciated.
Attached the code : http://tinypaste.com/7c8d4
 
Your myFields class is a partial class. Somewhere in your project, you probably have another class with the same name (also partial class) that already has this variable defined. Find this field and delete it.
 
lol noob mistake..forgot to add "namespace" at the beginning of the class.
 
Top
Sign up to the MyBroadband newsletter
X