Re: Namespace question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Correct me if my assumption is wrong, but can you not have a child namespace if the Parent Namespace has a class inside it?

No, this is supported. If it weren't the System namespace wouldn't be able to host any classes.

For your class to be visible in another assembly you need to make the class public, reference the class in the other app and reference the full namespace (either using or directly in the code).

Andrew

"TheVillageCodingIdiot" <whosyodaddy1019@xxxxxxxxxxx> wrote in message news:66d7aeff-d72b-4f4b-9c13-fdd01dd5b38e@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jul 8, 8:44 am, TheVillageCodingIdiot <whosyodaddy1...@xxxxxxxxxxx>
wrote:
Here is the deal, there is 1 DLL with a namespace of Billing and in
that namespace is a single class called corebillingreports. I added
the DLL into my project and trying to setup another class that
inherits from Billing.CoreBillingReports class. I try to setup the
namespace for this as Billing.CompanyA with a class named ActiveBill.
Active Bill inherits from Billing.CoreBillingReports class but it cant
get it to work. When i set the namespace Billing.CompanyA I do not see
CoreBillingReports class available under the Billing Namespace. My
goal is to create a NameSpace where it goes Billing.[CompanyName] and
in the company namespace all the different billing report classes. Thx
in advance

''''''''''''''''''''''''''''''''''''''''DLL
NameSpace Billing
Class CoreBillingReports
sub test ()
End sub
End class
End NameSpace

'''''''''''''''''''''''''''''''''''''Class created for windows form
project
NameSpace Billing.CompanyA
Class ActiveBill
Inherits Billing.CoreBillingReports 'Dont see
CoreBillingReports class listed
Sub A ()
End Sub
End Class
End NameSpace

Ok i was able to figure it out I think. Correct me if my assumption is
wrong, but can you not have a child namespace if the Parent Namespace
has a class inside it? What I did was move the
Billing.CoreBillingReports class into its own namespace of
Billing.CoreBillingReports.CoreBillingClass and now I can see CSP
under Billing.

.



Relevant Pages

  • Re: Weird bug in VS.NET 2003 IDE
    ... > From time to time, when I save my code, the IDE decides to add lines to ... > End Sub ... > End Namespace ... > the IDE adding all these lines is that the program fails to compile, ...
    (microsoft.public.vsnet.ide)
  • OO Perl - How to maintain class state when using inherited methods?
    ... sub serializeObject{ ... the namespace of the object is 'Addresses', ... ISA tree to execute this inherited method, ...
    (comp.lang.perl.misc)
  • Re: OO Perl - How to maintain class state when using inherited methods?
    ... sub serializeObject{ ... Referencing the dumped object in the above output, I can see that the namespace of the object is 'Addresses', but all of the internal properties are that of the parent class Collection.pm. ... ISA tree to execute this inherited method, and therefore it sees the namespace 'Collection' vice 'Addresses'? ...
    (comp.lang.perl.misc)
  • use Namespace to reference a form in a Module?
    ... I have added a Namespace to my vb.net project. ... Sub Main ... In a separate module, Module2, I want to reference Form1 ... I could not see txtData in a dropdown after Form1. ...
    (microsoft.public.dotnet.languages.vb)
  • Namespace around API calls
    ... I'm trying to "isolate" some unmanaged calls to DLLs in a separate namespace ... Sub Main ... (ByVal hWnd As Integer, ByVal lpText As String, ByVal lpCaption As String, ... THIRD TEST - try to Import namespace to avoid having to use the ...
    (microsoft.public.dotnet.languages.vb)