Returns a read-only wrapper around set.
public static ReadOnlySet<T> AsReadOnly<T>(this ISet<T> set)
A new ReadOnlySet that wraps set.
ReadOnlySet