Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Compiler Error CS0010

Visual Studio .NET 2003

Cannot declare a namespace and a type both named 'name'

A user-defined namespace is conflicting with an imported type name.

For example, the following sample generates CS0010:

// CS0010.cs
namespace System.Byte   // CS0010, rename namespace
   class MyClass
      public static int Main()
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.