SetUtility.AsReadOnly<T> method

Returns a read-only wrapper around set.

public static ReadOnlySet<T> AsReadOnly<T>(this ISet<T> set)
parameter description
T The type of object in the set.
set The ISet to wrap.

Return Value

A new ReadOnlySet that wraps set.

See Also