✅ Can't have interface with abstract static method as parameter in blazor component
I have interface and class like this:
now i want to have
IFoo
as parameter in blazor component like this:
but when i try to pass instance of Foo into the component i get this error: CS8920 The interface 'IFoo' cannot be used as type argument. Static member 'IFoo.Create()' does not have a most specific implementation in the interface.
Any way to fix this?1 Reply
sure
oook
i see
looks like i will have to figure something out
thanks for your help