Example #1
0
        public void NewDelegateTest()
        {
            var a      = new DelegateTest.A();
            var method = a.GetAction();

            method();
        }
Example #2
0
        public void CacheDelegateTest()
        {
            var a      = new DelegateTest.A();
            var method = a.GetActionCache();

            method();
        }
Example #3
0
        public void GetMethodTest()
        {
            var a      = new DelegateTest.A();
            var method = typeof(DelegateTest.A).GetMethod("Test") !;

            method.Invoke(a, Array.Empty <object>());
        }