Type arguments for extension method '<methodName>' defined in '<typeName>' could not be inferred from the delegate '<delagateName>'
An assignment statement uses AddressOf to assign the address of a generic extension method to a delegate, but it does not supply any type arguments to the extension method.
Normally, when you invoke a generic method, you supply a type argument for each type parameter that the generic method defines. If you do not supply any type arguments, the compiler attempts to infer the types to be passed to the type parameters. If the context does not provide enough information for the compiler to infer the types, an error is generated.
Error ID: BC36581
To correct this error
- In the AddressOf expression, specify the type arguments for the extension method.
See Also
Concepts
Generic Procedures in Visual Basic
Extension Methods (Visual Basic)