no such thing in C#, just declare a public class with all static member functions and a private constructorpublic class YourModule
{
YourModule() {}
public static void method1() {...}
public static void method2() {...}
}
then use
YourModule.method1();
{
YourModule() {}
public static void method1() {...}
public static void method2() {...}
}
then use
YourModule.method1();
用多线程来做如何,利用lock