.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) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
[SerializableAttribute]
public class PersistentGenericSet<T> : PersistentSet, 
	ISet<T>, ICollection<T>, IEnumerable<T>, IEnumerable, ICloneable
Visual Basic
<SerializableAttribute> _
Public Class PersistentGenericSet(Of T) _
	Inherits PersistentSet _
	Implements ISet(Of T), ICollection(Of T),  _
	IEnumerable(Of T), IEnumerable, ICloneable
Visual C++
[SerializableAttribute]
generic<typename T>
public ref class PersistentGenericSet : public PersistentSet, 
	ISet<T>, ICollection<T>, IEnumerable<T>, IEnumerable, ICloneable

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:NHibernate.Collection.Generic.PersistentGenericSet`1"]

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..::..PersistentSet
      NHibernate.Collection.Generic..::..PersistentGenericSet<(Of <(<'T>)>)>

See Also