ljbc1994 / BlazorIntersectionObserver

🔎 Intersection Observer API wrapper for Blazor applications
MIT License
61 stars 12 forks source link

cannot convert from 'method group' to 'bool' #19

Closed Michael-Anderlin closed 3 years ago

Michael-Anderlin commented 3 years ago

Hello,

Tx for you work. Great package !

I successfully ran the samples of this repo with expected result point of view Rider and browser. Then I follow the get started guide to use it in my project:

@inject IIntersectionObserverService ObserverService ...

...

... public async void OnIntersectingChanged(IntersectionObserverEntry entry) { if (entry.IsVisible) { Logger.LogInformation("Entry visible"); } else { Logger.LogInformation("Entry not visible"); } }

Tx for your help.

Kind regards,

Michael

Michael-Anderlin commented 3 years ago

Hello,

I found the problem. We have several projects in the solution. The projects' namespaces all start with the app name XXX. One of the project has the namespace XXX.Blazor.Common... Changing this to XXX.Whatever.Common resolve the issue.

KR,

Michael