This documentation is archived and is not being maintained.

Type arguments for method '<procedurename>' could not be inferred from the delegate '<delegatename>' 

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, it generates an error.

Error ID: BC30952

To correct this error

  • Specify the type arguments for the generic procedure in the AddressOf expression.

See Also

Show: