The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft