By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,665 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,665 IT Pros & Developers. It's quick & easy.

My very stupid question for the day

P: n/a
Create a new Windows forms app and you can type

Imports System.Runtime.Remoting

and start working away.

How come I didn't need to add a reference to System.Runtime.Remoting?

Thanks,
Ron
Jan 24 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Ronald S. Cook" <rc***@westinis.comschrieb:
Create a new Windows forms app and you can type

Imports System.Runtime.Remoting

and start working away.

How come I didn't need to add a reference to System.Runtime.Remoting?
Use the object browser to check out which DLLs contain the types contained
in the 'System.Runtime.Remoting' namespace.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jan 24 '07 #2

P: n/a
Yeah, I went to object browser and I see a superset what shows up under
project references. How come those all don't show up there? What's the
difference between the two?

Thanks,
Ron
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:uM**************@TK2MSFTNGP06.phx.gbl...
"Ronald S. Cook" <rc***@westinis.comschrieb:
>Create a new Windows forms app and you can type

Imports System.Runtime.Remoting

and start working away.

How come I didn't need to add a reference to System.Runtime.Remoting?

Use the object browser to check out which DLLs contain the types contained
in the 'System.Runtime.Remoting' namespace.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jan 24 '07 #3

P: n/a


"Ronald S. Cook" <rc***@westinis.comwrote in message
news:eC**************@TK2MSFTNGP02.phx.gbl...
Yeah, I went to object browser and I see a superset what shows up under
project references. How come those all don't show up there? What's the
difference between the two?

Thanks,
Ron
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:uM**************@TK2MSFTNGP06.phx.gbl...
>"Ronald S. Cook" <rc***@westinis.comschrieb:
>>Create a new Windows forms app and you can type

Imports System.Runtime.Remoting

and start working away.

How come I didn't need to add a reference to System.Runtime.Remoting?

Use the object browser to check out which DLLs contain the types
contained in the 'System.Runtime.Remoting' namespace.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Your "References" are references to specific assemblies and not to specified
namespaces. An assembly can (and does) contain multiple namespaces.

For example:

System.dll contains, among other namespaces:

System
System.CodeDom
System.IO
System.Web
Microsoft
Microsoft.CSharp
These are all different namespaces in the same assembly. One namespace can
also span multiple assemblies, for example:

System.dll contains the System.Web namespace.
System.Web.dll contains System.Web as well.

Now, for the namespace you mentioned, System.Runtime.Remoting...this
namespace is in mscorlib.dll, which is Microsoft's .Net core assembly. This
assembly is the core library for the .Net framework. Afaik, it is always
loaded for every application on the .Net framework. This assembly is not
shown in the projects "References".

HTH,
Mythran
Jan 24 '07 #4

P: n/a
Thanks!

"Mythran" <ki********@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>

"Ronald S. Cook" <rc***@westinis.comwrote in message
news:eC**************@TK2MSFTNGP02.phx.gbl...
>Yeah, I went to object browser and I see a superset what shows up under
project references. How come those all don't show up there? What's the
difference between the two?

Thanks,
Ron
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:uM**************@TK2MSFTNGP06.phx.gbl...
>>"Ronald S. Cook" <rc***@westinis.comschrieb:
Create a new Windows forms app and you can type

Imports System.Runtime.Remoting

and start working away.

How come I didn't need to add a reference to System.Runtime.Remoting?

Use the object browser to check out which DLLs contain the types
contained in the 'System.Runtime.Remoting' namespace.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Your "References" are references to specific assemblies and not to
specified namespaces. An assembly can (and does) contain multiple
namespaces.

For example:

System.dll contains, among other namespaces:

System
System.CodeDom
System.IO
System.Web
Microsoft
Microsoft.CSharp
These are all different namespaces in the same assembly. One namespace
can also span multiple assemblies, for example:

System.dll contains the System.Web namespace.
System.Web.dll contains System.Web as well.

Now, for the namespace you mentioned, System.Runtime.Remoting...this
namespace is in mscorlib.dll, which is Microsoft's .Net core assembly.
This assembly is the core library for the .Net framework. Afaik, it is
always loaded for every application on the .Net framework. This assembly
is not shown in the projects "References".

HTH,
Mythran


Jan 24 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.