Wraps a collection from System.Collections or Iesi.Collections inside one of the NHibernate collections.

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

Syntax

Visual Basic (Declaration)
Public MustOverride Function Wrap ( _
	session As ISessionImplementor, _
	collection As Object _
) As IPersistentCollection
C#
public abstract IPersistentCollection Wrap(
	ISessionImplementor session,
	Object collection
)
Visual C++
public:
virtual IPersistentCollection^ Wrap(
	ISessionImplementor^ session, 
	Object^ collection
) abstract
JavaScript
function wrap(session, collection);

Parameters

session
Type: NHibernate.Engine..::.ISessionImplementor
The ISessionImplementor for the collection to be a part of.
collection
Type: System..::.Object
The unwrapped collection.

Return Value

A subclass of IPersistentCollection that wraps the non NHibernate collection.

See Also