예제 #1
0
        protected virtual object TryResolve(Type viewType, object view)
        {
            object presenter = null;
            var    ci        = Presenters.GetConstructor(viewType);

            if (ci != null)
            {
                var instance = ci.Invoke(new object[] { view });
                presenter = instance;
            }
            return(presenter);
        }
예제 #2
0
        protected virtual bool CanResolve(Type viewType)
        {
            var ci = Presenters.GetConstructor(viewType);

            return(ci != null);
        }