コード例 #1
0
        public void ExecuteCommand(CommandProxy commandProxy)
        {
            var executeMethod = _invoker.GetType().GetMethods().Single(m => m.CustomAttributes.Any(a => a.AttributeType == typeof(InvokeCommandAttribute)));

            executeMethod.Invoke(_invoker, new[] { commandProxy.Proxy });
        }
コード例 #2
0
 public void ExecuteCommand(CommandProxy commandProxy)
 {
     var executeMethod = _invoker.GetType().GetMethods().Single(m => m.CustomAttributes.Any(a => a.AttributeType == typeof(InvokeCommandAttribute)));
     executeMethod.Invoke(_invoker, new[] {commandProxy.Proxy});
 }