BC36564: Type arguments could not be inferred from the delegate
An assignment statement uses AddressOf
to assign the address of a generic procedure to a delegate, but it does not supply any type arguments to the generic procedure.
Normally, when you invoke a generic type, you supply a type argument for each type parameter that the generic type 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: BC36564
To correct this error
- Specify the type arguments for the generic procedure in the
AddressOf
expression.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for