".. 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.
2 comments
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

http://www.jetbrains.com

"Develop with pleasure!"

0
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.

0

Please sign in to leave a comment.