473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

My very stupid question for the day

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
4 1172
"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
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


"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: sebb | last post by:
I'm kind of newbie to programming, but I thought of something and I want some opinions on that. It's about a new instruction block to do some cycles. I thought about that because it's not very...
119
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see,...
2
by: Lampa Dario | last post by:
Hi, where is this stupid error in this program? When I execute it, i receive a segmentation fault error. #include <stdio.h> int main(int argc, char *argv, char *env) { int i=0; int l=0; int...
10
by: Fei Li | last post by:
Hi, If I'm not stupid for this, then the design of FolderBrowserDialog is very stupid. It only allow to strat browing from several predefined folder(Environment.SpecialFolder). What can I do if...
5
by: Guoqi Zheng | last post by:
I think I have this kind of problem very often, now it is really making me crazy. VS.NET always want to change my html code. Ok, that is fine as long as Vs.Net can ask my confirmaton first. For...
6
by: Adam Smith | last post by:
I have posted this and similar questions repeatedly and can't even raise a single response. I am being led to believe that this then 'Must be a stupid question' although people say that there is no...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.