473,386 Members | 1,819 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,386 software developers and data experts.

The difference about namespace between VB.NET and C#

ad
Is there any difference about namespace between VB.NET and C#.

All functions in c# must include in a namespace.

Why I can't find namespace in the files .vb .

How VB.NET implement the concept of namespace
Nov 21 '05 #1
3 1802
Ad,
Is there any difference about namespace between VB.NET and C#. No! As namespace is a CLR construct used to groups types.
Why I can't find namespace in the files .vb . VB.NET projects normally set the Root namespace property under the Project
Properties dialog.

While C# normally leaves the Root namespace property blank under the Project
Properties dialog.

Hope this helps
Jay

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Is there any difference about namespace between VB.NET and C#.

All functions in c# must include in a namespace.

Why I can't find namespace in the files .vb .

How VB.NET implement the concept of namespace

Nov 21 '05 #2
ad
Thank!
But, Why the vb project still can compile after I delete the root namespace
in the project properties dialog,
and I did not add namepace in the codes, so that there are no namespace in
my vb projec?
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ¼¶¼g©ó¶l¥ó·s»D
:Oo**************@TK2MSFTNGP14.phx.gbl...
Ad,
Is there any difference about namespace between VB.NET and C#. No! As namespace is a CLR construct used to groups types.
Why I can't find namespace in the files .vb .

VB.NET projects normally set the Root namespace property under the Project
Properties dialog.

While C# normally leaves the Root namespace property blank under the

Project Properties dialog.

Hope this helps
Jay

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Is there any difference about namespace between VB.NET and C#.

All functions in c# must include in a namespace.

Why I can't find namespace in the files .vb .

How VB.NET implement the concept of namespace


Nov 21 '05 #3
"ad" <ad@wfes.tcc.edu.tw> schrieb:
But, Why the vb project still can compile after I delete the root
namespace
in the project properties dialog,
and I did not add namepace in the codes, so that there are no namespace in
my vb projec?


This will generate a namespace without a name.

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

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Empire City | last post by:
Can someone tell me what is the difference in placing the using in the namespace{} and before the namespace{} ? namespace MyProj { using System; using System.Web; } using System;
4
by: ad | last post by:
Is there any difference about namespace between VB.NET and C#. All functions in c# must include in a namespace. Why I can't find namespace in the files .vb . How VB.NET implement the...
4
by: SAI | last post by:
Both have "TextBox" element and "Runat server". I don't understand the difference. Please advise. Thanks.
5
by: ad | last post by:
Is there any difference about namespace between VB.NET and C#. All functions in c# must include in a namespace. Why I can't find namespace in the files .vb . How VB.NET implement the...
3
by: Xiaoshen Li | last post by:
Dear All, I saw some people using #include <string.h> some people using #include <cstring> What is the difference between the two? I can find the file string.h at /usr/include. I don't...
15
by: Youssef Mesri | last post by:
What is the difference between these two situations: 1- hold a namespace which contains justs some functions: namespace MyNamespace { void foo1(); void foo2(); void foo3(); void foo4();
1
by: Shadow Lynx | last post by:
If this is not the most appropriate group for this question, please let me know. I noticed an odd priority difference in resolving names in VS 2005 (VWD Express) vs. the .NET 2.0 compiler (the...
12
by: Keith Patrick | last post by:
Can someone tell me the difference in terms of actual implications using: namespace MyNamespace { using System; class MyClass {...} } vs. using System;
1
by: drrngrvy | last post by:
Hi all, Consider: <> namespace a { namespace nested { class a_class {}; } } namespace b { using ::a::nested::a_class; } namespace c { typedef ::a::nested::a_class a_class; }
3
by: Matt | last post by:
Hi everyone, can someone point out the difference between defining a class with the public access modifier and just leaving it as it is (default in vs.net "class") I think that the default...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...

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.