.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.CollectionAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class PersistentSet _ Inherits AbstractPersistentCollection _ Implements ISet, ICollection, IEnumerable, ICloneable |
C# |
---|
[SerializableAttribute] public class PersistentSet : AbstractPersistentCollection, ISet, ICollection, IEnumerable, ICloneable |
Visual C++ |
---|
[SerializableAttribute] public ref class PersistentSet : public AbstractPersistentCollection, ISet, ICollection, IEnumerable, ICloneable |
JavaScript |
---|
NHibernate.Collection.PersistentSet = function(); Type.createClass( 'NHibernate.Collection.PersistentSet', NHibernate.Collection.AbstractPersistentCollection, Iesi.Collections.ISet, ICollection, IEnumerable, ICloneable); |
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..::.AbstractPersistentCollection
NHibernate.Collection..::.PersistentSet