Creates a new CollectionType for an IList<(Of <(T>)>) with list semantics.

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function GenericList ( _
	role As String, _
	propertyRef As String, _
	elementClass As Type _
) As CollectionType
C#
public static CollectionType GenericList(
	string role,
	string propertyRef,
	Type elementClass
)
Visual C++
public:
static CollectionType^ GenericList(
	String^ role, 
	String^ propertyRef, 
	Type^ elementClass
)
JavaScript
NHibernate.Type.TypeFactory.genericList = function(role, propertyRef, elementClass);

Parameters

role
Type: System..::.String
The role the collection is in.
propertyRef
Type: System..::.String
The name of the property in the owner object containing the collection ID, or nullNothingnullptra null reference (Nothing in Visual Basic) if it is the primary key.
elementClass
Type: System..::.Type
The Type to use to create the IList<(Of <(T>)>) with.

Return Value

A ListType for the specified role.

See Also