473,770 Members | 6,978 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1201
"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******** ******@TK2MSFTN GP06.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******** ******@TK2MSFTN GP02.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******** ******@TK2MSFTN GP06.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.CShar p
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********@hot mail.comwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
>

"Ronald S. Cook" <rc***@westinis .comwrote in message
news:eC******** ******@TK2MSFTN GP02.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******* *******@TK2MSFT NGP06.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.CShar p
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
1632
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 easy to program a cycle. Here is a simple example : b=0
119
4635
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, http://www.alistapart.com/articles/betterliving/ I read on http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dnnetdep/html/netfxcompat.asp It said they changed stuff like this
2
2309
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 word=0; char *querystring; querystring=malloc(sizeof(char)*100000); if (getenv("QUERY_STRING")==NULL)
10
15304
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 I want to start from any folder I want?
5
1717
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 example, I have below in header part of my html page. <base href="http://localhost/more/"> When I click save, VS.NET change it back to <base href="http://localhost/more"> automatically without asking me or anything. It just remove the last "/" by...
6
1617
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 stupid question. Is that another for political correctness I am attempting an install of 7.4.3 on FreeBSD O/S 4.9, apparently remnants of 7.3.x are scattered around on the disk from (a) previous ports installation, causing mutex_lock/unlock,...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10002
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3970
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3575
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.