.NET has no design equivalent for Java's Set so we are going to use the Iesi.Collections library. This class is internal to NHibernate and shouldn't be used by user code.

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

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public Class PersistentGenericSet(Of T) _
	Inherits AbstractPersistentCollection _
	Implements ISet(Of T), ICollection(Of T),  _
	IEnumerable(Of T), ISet, ICollection, IEnumerable, ICloneable
C#
[SerializableAttribute]
public class PersistentGenericSet<T> : AbstractPersistentCollection, 
	ISet<T>, ICollection<T>, IEnumerable<T>, ISet, ICollection, 
	IEnumerable, ICloneable
Visual C++
[SerializableAttribute]
generic<typename T>
public ref class PersistentGenericSet : public AbstractPersistentCollection, 
	ISet<T>, ICollection<T>, IEnumerable<T>, ISet, ICollection, 
	IEnumerable, ICloneable
JavaScript
JavaScript does not support generic types or methods.

Type Parameters

T

Remarks

The code for the Iesi.Collections library was taken from the article Add Support for "Set" Collections to .NET that was written by JasonSmith.

Inheritance Hierarchy

System..::.Object
  NHibernate.Collection..::.AbstractPersistentCollection
    NHibernate.Collection.Generic..::.PersistentGenericSet<(Of <(T>)>)

See Also