We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993314c commit 8913cc9Copy full SHA for 8913cc9
Source/Blade/BasePresenterFactory.cs
@@ -56,6 +56,9 @@ public IPresenter<TModel> GetPresenter<TModel>()
56
protected virtual IPresenter<TModel> ResolvePresenter<TModel>()
57
where TModel : class
58
{
59
+ if(typeof(TModel) == typeof(object))
60
+ throw new ArgumentException("Model type cannot be object (or dynamic) because that would match any presenter (any type can be assigned to object).");
61
+
62
Type presenterInterfaceType = typeof(IPresenter<TModel>);
63
Type presenterType;
64
0 commit comments