Delegate.BeginInvokeããã®ä¾å¤ã¯å±ããªã
æ¨æ¥ã«ç¶ãDelegate.BeginInvokeã®å«ãããã¨ããã
using System; using System.Threading; delegate void SilverSkin (); class Program { static void Lance () { throw new Exception ("å±ãâ¦"); } static void Main () { // Threadã®å ´åã¯ä¾å¤ãçºçãã // new Thread (new ThreadStart (Lance)).Start (); // Delegate.BeginInvokeã¯ä¾å¤ãã¹ã¬ãããã¼ã«ã«é£ããã new SilverSkin (Lance).BeginInvoke (null, null); } }
ã¹ã¬ãããã¼ã«ã®ã¹ã¬ããããä¾å¤ãæãã¦ãå±ãã¾ããã