{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method ExceptWith | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ExceptWith

    ExceptWith<T>(ref NativeHashSet<T>, UnsafeHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to remove values from.

    UnsafeHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref NativeHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to remove values from.

    UnsafeHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref NativeHashSet<T>, UnsafeParallelHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to remove values from.

    UnsafeParallelHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref NativeHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to remove values from.

    UnsafeParallelHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref NativeHashSet<T>, UnsafeList<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to remove values from.

    UnsafeList<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref NativeParallelHashSet<T>, UnsafeHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to remove values from.

    UnsafeHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref NativeParallelHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to remove values from.

    UnsafeHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref NativeParallelHashSet<T>, UnsafeParallelHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to remove values from.

    UnsafeParallelHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref NativeParallelHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to remove values from.

    UnsafeParallelHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref NativeParallelHashSet<T>, UnsafeList<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to remove values from.

    UnsafeList<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, FixedList128Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    FixedList128Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, FixedList32Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    FixedList32Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, FixedList4096Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    FixedList4096Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, FixedList512Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    FixedList512Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, FixedList64Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    FixedList64Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, NativeArray<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    NativeArray<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, NativeHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    NativeHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    NativeHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, UnsafeHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    UnsafeHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    UnsafeHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, NativeParallelHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    NativeParallelHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    NativeParallelHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, UnsafeParallelHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    UnsafeParallelHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    UnsafeParallelHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, NativeList<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    NativeList<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeHashSet<T>, UnsafeList<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeHashSet<T> container

    The set to remove values from.

    UnsafeList<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList128Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    FixedList128Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList32Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    FixedList32Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList4096Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    FixedList4096Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList512Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    FixedList512Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList64Bytes<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    FixedList64Bytes<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeArray<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    NativeArray<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    NativeHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    NativeHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, UnsafeHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    UnsafeHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    UnsafeHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeParallelHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    NativeParallelHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    NativeParallelHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, UnsafeParallelHashSet<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    UnsafeParallelHashSet<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, ReadOnly)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    UnsafeParallelHashSet<T>.ReadOnly other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeList<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    NativeList<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    ExceptWith<T>(ref UnsafeParallelHashSet<T>, UnsafeList<T>)

    Removes the values from this set which are also present in another collection.

    Declaration
    public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    UnsafeParallelHashSet<T> container

    The set to remove values from.

    UnsafeList<T> other

    The collection to compare with.

    Type Parameters
    Name Description
    T

    The type of values.

    In This Article
    Back to top
    Copyright © 2023 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)