摘要:
``` class Program { static void Main(string[] args) { Type t = typeof(Student);//typeof(类) 取类的类型 并且存储在Type类型的t变量(其实是把类的类型的引用存在t中) //t stu1 = new t();这样是... 阅读全文
摘要:
class Program { static void Main(string[] args) { var dog = new Dog("A"); dog.IsHappy(new shit());//狗看到狗屎很开心 //dog.IsHappy(3);//狗看到数字3很开心,未添加约束时可以生效 / 阅读全文