Possible Duplicate:
Why C# is not allowing non-member functions like C++
Instead of writing StaticClass.Function()
I'd like to simply write Function()
. There will be many functions and all should be accessible from different (and unrelated) classes and files. How do I put these functions in a specific namespace? Simply declaring it there will give me a compile error
error CS1518: Expected class, delegate, enum, interface, or struct
I know other .NET languages can do it. Is there a compile option i may use? Perhaps even undocumented?