Modules cannot be generic

A Module statement uses the Of keyword to introduce generic type parameters.

You can define and use generic classes, structures, interfaces, procedures, and delegates. You cannot define generic modules.

Error ID: BC32073

To correct this error

  1. Remove the Of keyword from the Module statement.

  2. If you want the functionality of a generic module, the closest approximation is a generic class. Use a Class Statement (Visual Basic) instead of a Module statement.

See Also

Tasks

How to: Define a Class That Can Provide Identical Functionality on Different Data Types

Concepts

Generic Types in Visual Basic

Reference

Module Statement

Of