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); }
protected virtual bool CanResolve(Type viewType) { var ci = Presenters.GetConstructor(viewType); return(ci != null); }