are there module files in Csharp projetcs like we have in VB projects

Thank you
[9 byte] By [R.Tutus] at [2007-12-22]
# 1

Hi,

No, there are not. What do you need to put on a modulo file? Maybe if you tell me I can explain it how to do it in C#.

Regards

SalvaPatuel at 2007-8-30 > top of Msdn Tech,Visual C#,Visual C# Language...
# 2

The closest equivalent is a static class (a class with only static members). You'll have to qualify the member calls with the class name (which you don't have to do with a VB module), but that's the only real practical difference.

e.g.,

internal static class PseudoModule
{
public static void SomeMethod()
{
}
etc.
}

David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Clear VB: Cleans up VB.NET code
C# Code Metrics: Quick metrics for C#

DavidAnton at 2007-8-30 > top of Msdn Tech,Visual C#,Visual C# Language...
# 3

what i need is public functions and variables that we put in VB module files and that we can use all over the project

thanks

R.Tutus at 2007-8-30 > top of Msdn Tech,Visual C#,Visual C# Language...