.NET Generic Classes
Generics are classes and methods that have placeholders (type parameters or parameterized types) for one or more types. This lets you design classes that take in a generic type and determine the actual type at run time. A common use for generic classes is to work with collections. For information about generic methods, see Call .NET Generic Methods.
The NET.createGeneric
function creates an
instance of the specialized generic class given the following:
Fully qualified name of the generic class definition
List of fully qualified parameter type names for generic type specialization
Variable list of constructor arguments
Use instances of the NET.GenericClass
helper class in
NET.createGeneric
function’s parameter type list when
specialization requires another parameterized class definition. The class instances
serve as parameterized data type definitions and are constructed using fully qualified
generic type name and a variable length list of fully qualified type names for generic
type specialization. This list can also contain instances of
NET.GenericClass
if an extra nested level of parameterization is
required.