How to pass a Class as parameter for a method? [duplicate]
问题 This question already has answers here : How to use class name as parameter in C# (4 answers) Closed 3 years ago . I have two classs: Class Gold; Class Functions; There is a method ClassGet in class Functions , which has 2 parameters. I want to send the class Gold as parameter for one of my methods in class Functions . How is it possible? For example: public void ClassGet(class MyClassName, string blabla) { MyClassName NewInstance = new MyClassName(); } Attention: I want to send MyClassName