'Of' required when specifying type arguments for a generic type or method

A statement attempts to construct a type from a generic type, or call a generic method, without using an Of clause.

The Visual Basic syntax for generic types calls for the type parameters and type arguments to be introduced by the Of keyword. In addition, the type parameter list or type argument list must be enclosed within parentheses.

Error ID: BC32093

To correct this error

  • Include the Of keyword at the beginning of the type argument list, and enclose the entire list within parentheses.

See Also

Tasks

How to: Use a Generic Class

Concepts

Generic Types in Visual Basic