NameSpaces How To

  • Thread starter Thread starter SamSpade
  • Start date Start date
S

SamSpade

I have two libraries projects, a Vb one and an Cs one

I tried to have them both use the same namespace name and had problems.
Rather then describe everything I tried let me ask if that is valid?

If it is, then suppose I have two classes VbClass and CsClass.
One in one project and one in the other.

How does VbClass reference a method in CsClass

Thanks in advance
 
* " SamSpade said:
I tried to have them both use the same namespace name and had problems.
Rather then describe everything I tried let me ask if that is valid?

If it is, then suppose I have two classes VbClass and CsClass.
One in one project and one in the other.

How does VbClass reference a method in CsClass

For example, by referencing the library, the 'CsClass' resides in, then
importing the namespace 'CsClass' is defined in and instantiating the
class.
 
In your answer is there an implicit "yes" concerning the one namespace for
two projects?
 
Thanks
I had tried it before my first post but had a problem. The libraries are
complex so now that I know it should work I'll comment much of them out, get
it working and then put things back a little at a time.

One is Cs and one is Vb, hope that doesn't matter.
One uses something in the other - hope that's OK too.
 
I forgot to mention these are all shared methods.
So I assume I do NOT have to instantiate the class to use a method???
 
Back
Top