Initializes an instance of the PersistentGenericList<(Of <(T>)>) that wraps an existing IList<(Of <(T>)>) in the session.

Namespace:  NHibernate.Collection.Generic
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	session As ISessionImplementor, _
	coll As IList(Of T) _
)
C#
public PersistentGenericList(
	ISessionImplementor session,
	IList<T> coll
)
Visual C++
public:
PersistentGenericList(
	ISessionImplementor^ session, 
	IList<T>^ coll
)
JavaScript
NHibernate.Collection.Generic.PersistentGenericList = function(session, coll);

Parameters

session
Type: NHibernate.Engine..::.ISessionImplementor
The ISessionImplementor the bag is in.
coll
Type: System.Collections.Generic..::.IList<(Of <(T>)>)
The IList<(Of <(T>)>) to wrap.

See Also