Namespace

G

Guest

The following is defined in VB .NET 2003
' VB .NET 2003
Namespace MyNamespace

Public Class MyClass

End Class

End Namespace

In my C# project, 'using MySpace' causes error that says the type of
namespace cannot be found.

I added reference to the C# project. Please help. Thanks.
 
J

james.curran

er..um...

Well, clearly someplace you have a typo. You say "MyNamespace" in one
spot and "MySpace" in the other.

If the error is in your code, and not just in your message, problem
solved.
 
G

Guest

Solved.

In C#, type in the following

using MyVBProj.MyNamespace;
//MyVBProj is the VB .NET project name that contains the definition of class
//MyClass. In other words, you can eliminate namespace in your VB .NET
project //if you don't mean to create a namespace within the default one.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top