[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: Re: [OT] VB.NET programmers?
Hello Andy,
If you want to call "myapp.mclass" as
"mybigapp.myapp.myclass" they'll
have to share the same namespace.
IE:
' myApp.vb
Namespace MyBigApp
Namespace MyApp
Public Class myClass
End Class
End Namespace
End Namespace
'myBigApp.vb
NameSpace MyBigApp
Class MyBigApp
End Class
End Namespace
'OtherApp.vb
Namespace OtherApp
Class otherApp
Public Sub New()
Dim z as New MyBigApp.MyApp.myClass
End Sub
End Class
End Namespace
--
Best regards,
Joćo
Wednesday, May 22, 2002, 4:37:43 PM, you wrote:
DS> Yeah, that's fine. Compile myapp.myclass to an assembly and add a
reference
DS> to the namespace. You can then reference the class in anyway, as
long as the
DS> name is unique. Ie, if your class has a name clash with another
class then
DS> you'll need to use the namespace to provide a unique reference,
otherwise
DS> you don't need it. However, it is clearer to read if you use the
namespace,
DS> especially if the namespace differs from the client namespace.
DS> d
DS> "andy_powell_is" <ukha@xxxxxxx> wrote in message
DS> news:<6553BCF3E25DD2118F0A00AA00AE6AAA446F1D@tigger>...
>>
>> The idea is that the 'myapp.myclass' would be compiled and
mybigapp
>> would 'consume' the 'myapp.myclass' class so that it effectively
>> became the parent - I would WANT to say mybigapp.myapp.myclass
>>
>> Andy
>>
>> --- In ukha_d@y..., "Amar Nagi" <amar@a...> wrote:
>> > don;t think you would need mybigapp
>> > just the class name
>> >
>> >
>> > -----Original Message-----
>> > From: andy_powell_is [mailto:ukha@xxxxxxx...]
>> > Sent: Wed 22/05/2002 15:10
>> > To: ukha_d@y...
>> > Cc:
>> > Subject: [ukha_d] [OT] VB.NET programmers?
>> >
>> >
>> >
>> > Hi,
>> >
>> > are there any vb.net programmers out there or can
anyone
>> confirm/deny
>> > the following:
>> >
>> > If I create a class (let's say 'myapp.myclass') and i
want
>> another
>> > applocation to be able to use the class (say
'mybigapp') can
>> the
>> > class be referenced via the main application (mybigapp)
ie
>> can I do:
>> >
>> > mybigapp.myapp.myclass
>> >
>> > at runtime?
>> >
>> > Thanks
>> >
>> > Andy
>> >
>> >
>> > ------------------------ Yahoo! Groups Sponsor
---------------
>> ------~-->
>> > Buy Stock for $4
>> > and no minimums.
>> > FREE Money 2002.
>> > http://us.click.yahoo.com/orkH0C/n97DAA/Ey.GAA/IBOolB/TM
>> <http://us.click.yahoo.com/orkH0C/n97DAA/Ey.GAA/IBOolB/TM>
>> >
--------------------------------------------------------------
>> -------~->
>> >
>> > For more information: http://www.automatedhome.co.uk
>> <http://www.automatedhome.co.uk>
>> > Post message: ukha_d@y...
>> > Subscribe: ukha_d-subscribe@y...
>> > Unsubscribe: ukha_d-unsubscribe@y...
>> > List owner: ukha_d-owner@y...
>> >
>> > Your use of Yahoo! Groups is subject to
>> http://docs.yahoo.com/info/terms/
<http://docs.yahoo.com/info/terms/>
>>
>>
>>
>> Yahoo! Groups Sponsor
>>
>> ADVERTISEMENT
>>
>> <http://rd.yahoo.com/M=226014.2032696.3508022.1829184/D=egroupweb/S=1705
>> 041992:HM/A=1000239/R=0/*http://ads.x10.com/?bHlhaG9vaG0xLmRhd=102207880
>>
4%3eM=226014.2032696.3508022.1829184/D=egroupweb/S=1705041992:HM/A=10002
>> 39/R=1>
>>
>> <http://us.adserver.yahoo.com/l?M=226014.2032696.3508022.1829184/D=egrou
>> pmail/S=1705041992:HM/A=1000239/rand=674181779>
>>
>> For more information: http://www.automatedhome.co.uk
>> <http://www.automatedhome.co.uk>
>> Post message: ukha_d@xxxxxxx
>> Subscribe: ukha_d-subscribe@xxxxxxx
>> Unsubscribe: ukha_d-unsubscribe@xxxxxxx
>> List owner: ukha_d-owner@xxxxxxx
>>
>> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
>> <http://docs.yahoo.com/info/terms/>
.
DS> Yahoo! Groups SponsorADVERTISEMENT
DS> For more information: http://www.automatedhome.co.uk
DS> Post message: ukha_d@xxxxxxx
DS> Subscribe: ukha_d-subscribe@xxxxxxx
DS> Unsubscribe: ukha_d-unsubscribe@xxxxxxx
DS> List owner: ukha_d-owner@xxxxxxx
DS> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Home |
Main Index |
Thread Index
|