docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HashSetExtensions

    Provides extension methods for sets.

    Inheritance
    object
    HashSetExtensions
    Namespace: Unity.Collections
    Assembly: Unity.Collections.dll
    Syntax
    public static class HashSetExtensions

    Methods

    ExceptWith<T>(ref NativeHashSet<T>, FixedList128Bytes<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, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 NativeHashSet<T>, FixedList32Bytes<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, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 NativeHashSet<T>, FixedList4096Bytes<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, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 NativeHashSet<T>, FixedList512Bytes<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, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 NativeHashSet<T>, FixedList64Bytes<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, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 NativeHashSet<T>, NativeArray<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, NativeArray<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 NativeHashSet<T>, NativeHashSet<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, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 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, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 NativeHashSet<T>, NativeList<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, NativeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 NativeHashSet<T>, NativeParallelHashSet<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, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 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, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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 NativeParallelHashSet<T>, FixedList128Bytes<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, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 NativeParallelHashSet<T>, FixedList32Bytes<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, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 NativeParallelHashSet<T>, FixedList4096Bytes<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, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 NativeParallelHashSet<T>, FixedList512Bytes<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, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 NativeParallelHashSet<T>, FixedList64Bytes<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, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 NativeParallelHashSet<T>, NativeArray<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, NativeArray<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 NativeParallelHashSet<T>, NativeHashSet<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, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 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, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 NativeParallelHashSet<T>, NativeList<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, NativeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 NativeParallelHashSet<T>, NativeParallelHashSet<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, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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 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, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    IntersectWith<T>(ref NativeHashSet<T>, FixedList128Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

    IntersectWith<T>(ref NativeHashSet<T>, FixedList32Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

    IntersectWith<T>(ref NativeHashSet<T>, FixedList4096Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

    IntersectWith<T>(ref NativeHashSet<T>, FixedList512Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

    IntersectWith<T>(ref NativeHashSet<T>, FixedList64Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

    IntersectWith<T>(ref NativeHashSet<T>, NativeArray<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

    IntersectWith<T>(ref NativeHashSet<T>, NativeHashSet<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

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

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

    IntersectWith<T>(ref NativeHashSet<T>, NativeList<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

    IntersectWith<T>(ref NativeHashSet<T>, NativeParallelHashSet<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

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

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

    Declaration
    public static void IntersectWith<T>(this ref NativeHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<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.

    IntersectWith<T>(ref NativeParallelHashSet<T>, FixedList128Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    IntersectWith<T>(ref NativeParallelHashSet<T>, FixedList32Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    IntersectWith<T>(ref NativeParallelHashSet<T>, FixedList4096Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    IntersectWith<T>(ref NativeParallelHashSet<T>, FixedList512Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    IntersectWith<T>(ref NativeParallelHashSet<T>, FixedList64Bytes<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    IntersectWith<T>(ref NativeParallelHashSet<T>, NativeArray<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    IntersectWith<T>(ref NativeParallelHashSet<T>, NativeHashSet<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

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

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    IntersectWith<T>(ref NativeParallelHashSet<T>, NativeList<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    IntersectWith<T>(ref NativeParallelHashSet<T>, NativeParallelHashSet<T>)

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

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

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

    Declaration
    public static void IntersectWith<T>(this ref NativeParallelHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<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.

    UnionWith<T>(ref NativeHashSet<T>, FixedList128Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList128Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, FixedList32Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList32Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, FixedList4096Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList4096Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, FixedList512Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList512Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, FixedList64Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList64Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, NativeArray<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeArray<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, NativeHashSet<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeHashSet<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

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

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeHashSet<T>.ReadOnly other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, NativeList<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeList<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, NativeParallelHashSet<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeParallelHashSet<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

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

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeParallelHashSet<T>.ReadOnly other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList128Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList128Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList32Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList32Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList4096Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList4096Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList512Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList512Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList64Bytes<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    FixedList64Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, NativeArray<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeArray<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, NativeHashSet<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeHashSet<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

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

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeHashSet<T>.ReadOnly other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, NativeList<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeList<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, NativeParallelHashSet<T>)

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeParallelHashSet<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

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

    Adds all values from a collection to this set.

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

    The set to add values to.

    NativeParallelHashSet<T>.ReadOnly other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

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