C# 自訂事件 宣告 1234//宣告委派public delegate void TestEvent(object sender, EventArgs e);//宣告事件、委派類型public event TestEvent OnEyesWatch(); 使用方法 12345678//調用事件public void TestFunction(){ OnEyesWatch?.Invoke(this, new EventArgs());}//委派事件className.OnEyesWatch+= xxxxxxx; ← Previous Post Next Post → FEATURED TAGS C# FRIENDS It Helps SEO