473,406 Members | 2,745 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,406 software developers and data experts.

modules in VS.NET.

Are there any plans to support C# modules in VS.NET in a future version.
Nov 22 '05 #1
7 1737
Hi Peter,

What's a module?

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
Are there any plans to support C# modules in VS.NET in a future version.

Nov 22 '05 #2
Do you mean like a VB.Net module? If so, probably not. A VB.Net module is
really just a sealed(NotInheritable) class with static (Shared) members, so
there isn't any particular need for the "module" syntax in C#. For example,
these code snippets are identical:

Module Module1

Sub Main()
DoSomething()
End Sub

End Module
sealed class Module1 {

static void Main() {
DoSomething();
}

}
For details:
"Visual Basic .NET Internals"
http://msdn.microsoft.com/library/de...tinternals.asp
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
Are there any plans to support C# modules in VS.NET in a future version.

Nov 22 '05 #3
Actually, if memory serves, C# is supposed to gain this feature at some
point(I don't know if it'll be 2.0 or longhorn time frame however). The
syntax was supposed to be something like
public static class Class1
{
public static void Class1Method()
{
}

}

I forget where I read that, and it may not be true any longer, but it seems
to me that it was being added.

On the other hand, if the op is talking about netmodules, I also recall
reading about an addition to whidbey that adds easier use of them, but again
I don't know where I read that or if its valid offhand.
"Robert Jacobson" <rj**********************@nospam.com> wrote in message
news:ef**************@TK2MSFTNGP12.phx.gbl...
Do you mean like a VB.Net module? If so, probably not. A VB.Net module is really just a sealed(NotInheritable) class with static (Shared) members, so there isn't any particular need for the "module" syntax in C#. For example, these code snippets are identical:

Module Module1

Sub Main()
DoSomething()
End Sub

End Module
sealed class Module1 {

static void Main() {
DoSomething();
}

}
For details:
"Visual Basic .NET Internals"
http://msdn.microsoft.com/library/de...tinternals.asp

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
Are there any plans to support C# modules in VS.NET in a future version.


Nov 22 '05 #4
"Peter Rilling" <pe***@nospam.rilling.net> writes:
Are there any plans to support C# modules in VS.NET in a future version.


I don't know if in the future VS.NET will be able to compile
modules but... maybe yes.

bye

--
Lawrence
Nov 22 '05 #5
"Miha Markic" <miha at rthand com> writes:
Hi Peter,

What's a module?


c:\>csc /nologo /t:module hello.cs
c:\>dir
hello.netmodule

Modules are assemblies without manifest, allowing you to merge modules created
in different languages within a single assembly
--
Lawrence
Nov 22 '05 #6
I am not referring to the VB.NET "module" construct but rather the
capability to compile code to a .netmodule file. This can be done on the
CSC compiler, but not in VS.NET. VS.NET only supports executables and
assembly libraries.
"Robert Jacobson" <rj**********************@nospam.com> wrote in message
news:ef**************@TK2MSFTNGP12.phx.gbl...
Do you mean like a VB.Net module? If so, probably not. A VB.Net module is really just a sealed(NotInheritable) class with static (Shared) members, so there isn't any particular need for the "module" syntax in C#. For example, these code snippets are identical:

Module Module1

Sub Main()
DoSomething()
End Sub

End Module
sealed class Module1 {

static void Main() {
DoSomething();
}

}
For details:
"Visual Basic .NET Internals"
http://msdn.microsoft.com/library/de...tinternals.asp

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
Are there any plans to support C# modules in VS.NET in a future version.


Nov 22 '05 #7
Peter,
I understand that Whidbey (VS.NET 2004) will support .net modules.

See the thread titled "'static library' in .net 2.0?" in the
microsoft.public.dotnet.framework newsgroup around 20 January 2004.

I understand that VS.NET 2004 should be available late 2004.

Hope this helps
Jay

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
Are there any plans to support C# modules in VS.NET in a future version.

Nov 22 '05 #8

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

Similar topics

2
by: Dave | last post by:
Hi Everyone, I am trying to import a package and then loop through the modules inside the package, but I'm running to a problem. Basically: ----- I have a package called...
0
by: Nick Coghlan | last post by:
Anyone playing with the CPython interpreter's new command line switch might have noticed that it only works with top-level modules (i.e. scripts that are directly on sys.path). If the script is...
15
by: Nick Coghlan | last post by:
Python 2.4's -m command line switch only works for modules directly on sys.path. Trying to use it with modules inside packages will fail with a "Module not found" error. This PEP aims to fix that...
7
by: Jorgen Grahn | last post by:
I have a set of tests in different modules: test_foo.py, test_bar.py and so on. All of these use the simplest possible internal layout: a number of classes containing test*() methods, and the good...
4
by: Misto . | last post by:
Hi folks! Short: There is a way to dumplicate a module ? I tried copy.deepcopy(module) but hangs with an error (also with standard modules ).. The only solution that I have by now is...
2
by: James Buchanan | last post by:
Hi group, I'm preparing Python 2.4.2 for the upcoming Minix 3.x release, and I have problems with make. configure runs fine and creates the makefile, but right at the end ends with an error...
7
by: Lauren Quantrell | last post by:
At running the risk of asking how big is too big... Is there a rule of thumb or a best practice that says I may have too many modules? I currently have a Access2K app with about 30 code modules,...
13
by: Robin Haswell | last post by:
Hey people I'm an experience PHP programmer who's been writing python for a couple of weeks now. I'm writing quite a large application which I've decided to break down in to lots of modules...
173
by: Zytan | last post by:
I've read the docs on this, but one thing was left unclear. It seems as though a Module does not have to be fully qualified. Is this the case? I have source that apparently shows this. Are...
3
by: Mohamed Yousef | last post by:
Hello , The problem I'm asking about is how can imported modules be aware of other imported modules so they don't have to re-import them (avoiding importing problems and Consicing code and...
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: 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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.