R# 912: Argument type 'method group' is not assignable to...

Hello

I get to see the following ReSharper error (see screencapture):

Argument type 'method group' is not assignable to parameter type '...'

ReSharper suggests to create an overload of my OnFilterCleared() and use the
"Func<>" delegate. Why is this?

Cheers

Gabriel Lozano-Moran





Attachment(s):
argument type.png
1 comment
Comment actions Permalink

Ignore this, apparently instead of implementing the static New as a property
I implemented it as a static method. The error message was a bit cryptic
that's all :)

Gabriel

"Gabriel Lozano-Moran" <gabriel@lozano-moran.name> wrote in message
news:g6jsr3$s3q$1@is.intellij.net...

Hello

>

I get to see the following ReSharper error (see screencapture):

>

Argument type 'method group' is not assignable to parameter type '...'

>

ReSharper suggests to create an overload of my OnFilterCleared() and use
the "Func<>" delegate. Why is this?

>

Cheers

>

Gabriel Lozano-Moran

>



0

Please sign in to leave a comment.