ambiguous Resharper missing suggestion

Hi,

I got the following suggestion from ReSharper:

resharper.png
My question is why ReSharper is not suggesting the same for the two previous similar usage? at least for the first one since it is completely identical?

Thank you!

1 comment
Comment actions Permalink

Presumably because the LoadComplete event is defined on the base Page class, not your DataObjectDialog class.

Incidentally, since you have "var page = Page as DataObjectDialog;" higher up, it would be more efficient to replace the repeated "Page is DataObjectDialog" calls with "page != null".

0

Please sign in to leave a comment.