Re: Same namespace, different files
From: Richard Myers (richard.spam-free.myers_at_basd.co.nz)
Date: 07/04/04
- Next message: memHog: "Re: Opening a word document using MS Webbrowser Control"
- Previous message: Cor Ligthert: "Re: Documentation."
- In reply to: Rico Rivera: "Same namespace, different files"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 4 Jul 2004 19:01:15 +1200
If they are in the same assembly you can drop the namespace reference.
SomeClassA.MethodA()
You SHOULD have different classes in different files.
Any other form of organisation, except with nested classes obviously, is not
considered best practise.
Something else you might check is in the Project settings. Make sure you
have removed the implicit default namespace from the textbox that says
"Namespace".
Otherwise the effective namespace will be a union of this implicit project
parameter and that which you have defined explicitly in the class....
i.e Possibly you cannot get a reference to MethodA because it's actually
fully qualified as
SomeNamespace.Somenamespace.SomeClassA.MethodA().
The union of the implicit and explicit namespace declarations.
So basically dont combine explicit and implicit namespacing in your
classes... standardise on one or the other....and I'd recommend explicit.
hth
Richard
- Next message: memHog: "Re: Opening a word document using MS Webbrowser Control"
- Previous message: Cor Ligthert: "Re: Documentation."
- In reply to: Rico Rivera: "Same namespace, different files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|