所以我的class1.cs布局类似于:
public class Job1 { public Job1() { } } public class Methods { public static void Method1() { //Want to access method here from Job1 } }
public Job1() { Methods.Method1() }
如果Job1类与Methods不同,那么您需要添加using子句,或者在调用方法时指定命名空间. Name.Space.Methods.Method1()