Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ImmutableSet Class

Implements an immutable (read-only) ISet wrapper.

For a list of all members of this type, see ImmutableSet Members .


[Visual Basic]
<Serializable> _
Public NotInheritable Class ImmutableSet
    Inherits Set
public sealed class ImmutableSet : Set

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Although this class is advertised as immutable, it really isn't. Anyone with access to the wrapped ISet can still change the data. So GetHashCode is not implemented for this ISet, as is the case for all ISet implementations in this library. This design decision was based on the efficiency of not having to clone the wrapped ISet every time you wrap a mutable ISet.


Namespace: Spring.Collections

Assembly: Spring.Core (in Spring.Core.dll)

See Also

ImmutableSet Members | Spring.Collections Namespace