摘要:
类似于unity碰撞事件,A对象同时触发B、C对象的事件,B、C事件同时调用A方法的问题 public class Person { public delegate void ValueChangeDel(); public event ValueChangeDel valueChangeEvent 阅读全文
摘要:
分享一下C#多线程的使用示例 贴上代码: namespace ThreadingTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public delegate int Mydel 阅读全文
摘要:
分享一下自己写的使用反射的例子,包括根据名字获取属性值、字段(类的示例对,如自己申明的类或者list等)、调用函数(无参、有参),界面如下: 贴上代码: namespace RelectionTest { public class Person { public string name { get 阅读全文