|
-
Sep 13th, 2015, 09:23 AM
#2
Thread Starter
Frenzied Member
Re: Need help with generics and base classes
Hi again!
As I noted before, the compiler doesn't like the call to validate, which is an extension method definied in FluentValidation namespace.
As far as I can see, the real issue here is that I am trying to call this extension method from a class that is generic. If I put all this code directly in the MainViewModel without the generics, it works just fine. So I guess my question boils down to this:
How can I call Validate from a generic base class? The extension method itself is declared ina static non generic class within the FluentValidation namespace. Do I have to write some kind of wrapper or is there some other coding magic I can use?
I am quite clueless on this one to be honest. The strange thing is alos that intellisense suggests there is a method with 2 parameters, but refuse to accept my call to it. Maybe a bug?
/H
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|