Beispiel #1
0
        public static void CallBundleMethod(this ViewModelBase viewModel, string methodName, object parameter)
        {
            var methods = viewModel.GetType().GetRuntimeMethods();
            var method  = methods
                          .Where(m => m.Name == methodName)
                          .Where(m => !m.IsStatic)
                          .FirstOrDefault();

            if (method != null)
            {
                viewModel.CallBundleMethod(method, parameter);
            }
        }