Troubleshooting

Error Messages and the Reasons for Their Occurrence

When two or more compilation units add members of the same type with the same name to another namespace by using fully qualified names, the compiler displays an error message stating that the particular namespace already has a definition for that member.

A namespace cannot contain two members of the same type with the same name. To add two members of the same type to a namespace, provide different names for the two members.

Get Special Edition Using C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.