".. is not assignable.." R# error message but app compiles

I have a controller action method which returns a view. R# indicates an error in this statement: return View(model) where 'model' is an instance of a class. 

The error is : Argument type '...' is not assignable to model type System.Collection.Generic.IEnumerable<...>. where ... is the class name for model.

The app compiles fine. I get the error in R$ 6.1.1 and latest 7.0 EAP.
Comment actions Permalink

Hello Abdu
     Could you please attach a small sample solution demonstrating this behavior? Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc


"Develop with pleasure!"

Comment actions Permalink

I saw it in the Clinical Study sample app that comes with DevExpress' ASP.NET suite. If you want to see it, you will need to download the trial and install that suite.


Please sign in to leave a comment.