I can't figure out how to do something in C# that can be done in VB (2005 for both). I have C# class for all my utility functions:
namespace CSharpUtilities
class Utilities
public string CSFunction1
public bool CSFunction2
I can have a VB application, and add CSharpUtilities as a separate project within the solution. and the Imports statement can be like "Imports CSharpUtilities.Utilities". Then I can use code like this in the VB program:
MyString = CSFunction1("Hello World")
or something like that. I don't have to qualify the function call to be
MyString = Utilities.CSFunction1("Hello World").
How do I get the ability to not have to qualify the function call (i.e. not add "Utilities." to the front of it) in C#?
C# will allow a "using CSharpUtilities;" but if I try to do "using CSharpUtilities.Utilities;" to get to where I was in VB, the compiler and IDE reject it. There is no way to be able to use the unqualified call and put
string MyString = CSFunction1("Hello World");
in C# that I can figure out. The only way this works is
string MyString = Utilities.CSFunction1("Hello World");
Does anyone know what I need to do to be able to use the unqualified Function call?
Thanks!