docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IReadOnlySet<T>

    A subset of the IReadOnlySet interface added in .NET 5. Members that depend on the IEnumerable interface are omitted because of performance implications of boxing the enumerator.

    Inherited Members
    IReadOnlyCollection<T>.Count
    IEnumerable<T>.GetEnumerator()
    Namespace: Unity.XR.CoreUtils.Collections
    Assembly: Unity.XR.CoreUtils.dll
    Syntax
    public interface IReadOnlySet<T> : IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    The element type.

    Methods

    Contains(T)

    Determines if the set contains a specific element.

    Declaration
    bool Contains(T element)
    Parameters
    Type Name Description
    T element

    The element.

    Returns
    Type Description
    bool

    true if the set contains the element. Otherwise, false.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)