docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NonNullableHashSet<T>

    Inheritance
    object
    NonNullableHashSet<T>
    Implements
    ISet<T>
    ICollection<T>
    IEnumerable<T>
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.VisualScripting
    Assembly: Unity.VisualScripting.Core.dll
    Syntax
    public class NonNullableHashSet<T> : ISet<T>, ICollection<T>, IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    Constructors

    NonNullableHashSet()

    Declaration
    public NonNullableHashSet()

    NonNullableHashSet(IEnumerable<T>)

    Declaration
    public NonNullableHashSet(IEnumerable<T> collection)
    Parameters
    Type Name Description
    IEnumerable<T> collection

    NonNullableHashSet(IEnumerable<T>, IEqualityComparer<T>)

    Declaration
    public NonNullableHashSet(IEnumerable<T> collection, IEqualityComparer<T> comparer)
    Parameters
    Type Name Description
    IEnumerable<T> collection
    IEqualityComparer<T> comparer

    NonNullableHashSet(IEqualityComparer<T>)

    Declaration
    public NonNullableHashSet(IEqualityComparer<T> comparer)
    Parameters
    Type Name Description
    IEqualityComparer<T> comparer

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    bool

    Methods

    Add(T)

    Adds the specified item to the set.

    Declaration
    public bool Add(T item)
    Parameters
    Type Name Description
    T item

    The item to add to the set.

    Returns
    Type Description
    bool

    true if the item was added to the set (i.e., it was not already present); otherwise, false.

    Clear()

    Declaration
    public void Clear()

    Contains(T)

    Declaration
    public bool Contains(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    bool

    CopyTo(T[], int)

    Declaration
    public void CopyTo(T[] array, int arrayIndex)
    Parameters
    Type Name Description
    T[] array
    int arrayIndex

    ExceptWith(IEnumerable<T>)

    Modifies the current set to contain only elements that are not present in the specified collection.

    Declaration
    public void ExceptWith(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    GetEnumerator()

    Declaration
    public IEnumerator<T> GetEnumerator()
    Returns
    Type Description
    IEnumerator<T>

    IntersectWith(IEnumerable<T>)

    Modifies the current set to contain only elements that are present in both the current set and the specified collection.

    Declaration
    public void IntersectWith(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    IsProperSubsetOf(IEnumerable<T>)

    Determines whether the current set is a proper subset of the specified collection. A proper subset is a subset that is not equal to the other set.

    Declaration
    public bool IsProperSubsetOf(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    Returns
    Type Description
    bool

    true if the current set is a proper subset of the specified collection; otherwise, false.

    IsProperSupersetOf(IEnumerable<T>)

    Determines whether the current set is a proper superset of the specified collection. A proper superset is a superset that is not equal to the other set.

    Declaration
    public bool IsProperSupersetOf(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    Returns
    Type Description
    bool

    true if the current set is a proper superset of the specified collection; otherwise, false.

    IsSubsetOf(IEnumerable<T>)

    Determines whether the current set is a subset of the specified collection.

    Declaration
    public bool IsSubsetOf(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    Returns
    Type Description
    bool

    true if the current set is a subset of the specified collection; otherwise, false.

    IsSupersetOf(IEnumerable<T>)

    Determines whether the current set is a superset of the specified collection.

    Declaration
    public bool IsSupersetOf(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    Returns
    Type Description
    bool

    true if the current set is a superset of the specified collection; otherwise, false.

    Overlaps(IEnumerable<T>)

    Determines whether the current set has any elements in common with the specified collection.

    Declaration
    public bool Overlaps(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    Returns
    Type Description
    bool

    true if the current set and the specified collection share at least one common element; otherwise, false.

    Remove(T)

    Declaration
    public bool Remove(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    bool

    SetEquals(IEnumerable<T>)

    Determines whether the current set and the specified collection contain the same elements.

    Declaration
    public bool SetEquals(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    Returns
    Type Description
    bool

    true if the current set and the specified collection contain the same elements; otherwise, false.

    SymmetricExceptWith(IEnumerable<T>)

    Modifies the current set to contain only elements that are present either in the current set or in the specified collection, but not both.

    Declaration
    public void SymmetricExceptWith(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    UnionWith(IEnumerable<T>)

    Modifies the current set to contain all elements that are present in either the current set or the specified collection.

    Declaration
    public void UnionWith(IEnumerable<T> other)
    Parameters
    Type Name Description
    IEnumerable<T> other

    The collection to compare to the current set.

    Implements

    ISet<T>
    ICollection<T>
    IEnumerable<T>
    IEnumerable

    Extension Methods

    LinqUtility.AddRange<T>(ICollection<T>, IEnumerable<T>)
    LinqUtility.AddRange<T>(ICollection<T>, IEnumerable<T>)
    LinqUtility.AsReadOnlyCollection<T>(IEnumerable<T>)
    LinqUtility.AsReadOnlyCollection<T>(IEnumerable<T>)
    LinqUtility.AsReadOnlyList<T>(IEnumerable<T>)
    LinqUtility.AsReadOnlyList<T>(IEnumerable<T>)
    LinqUtility.CatchAsLogError<T>(IEnumerable<T>, string)
    LinqUtility.CatchAsLogError<T>(IEnumerable<T>, string)
    LinqUtility.CatchAsLogWarning<T>(IEnumerable<T>, string)
    LinqUtility.CatchAsLogWarning<T>(IEnumerable<T>, string)
    LinqUtility.Catch<T>(IEnumerable<T>, Action<Exception>)
    LinqUtility.Catch<T>(IEnumerable<T>, Action<Exception>)
    LinqUtility.Catch<T>(IEnumerable<T>, ICollection<Exception>)
    LinqUtility.Catch<T>(IEnumerable<T>, ICollection<Exception>)
    LinqUtility.DistinctBy<T, TKey>(IEnumerable<T>, Func<T, TKey>)
    LinqUtility.DistinctBy<T, TKey>(IEnumerable<T>, Func<T, TKey>)
    LinqUtility.Flatten<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
    LinqUtility.Flatten<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
    LinqUtility.NotNull<T>(IEnumerable<T>)
    LinqUtility.NotNull<T>(IEnumerable<T>)
    LinqUtility.OrderByDependencies<T>(IEnumerable<T>, Func<T, IEnumerable<T>>, bool)
    LinqUtility.OrderByDependencies<T>(IEnumerable<T>, Func<T, IEnumerable<T>>, bool)
    LinqUtility.OrderByDependers<T>(IEnumerable<T>, Func<T, IEnumerable<T>>, bool)
    LinqUtility.OrderByDependers<T>(IEnumerable<T>, Func<T, IEnumerable<T>>, bool)
    LinqUtility.ToHashSet<T>(IEnumerable<T>)
    LinqUtility.ToHashSet<T>(IEnumerable<T>)
    XArrayPool.ToArrayPooled<T>(IEnumerable<T>)
    XArrayPool.ToArrayPooled<T>(IEnumerable<T>)
    XHashSetPool.ToHashSetPooled<T>(IEnumerable<T>)
    XHashSetPool.ToHashSetPooled<T>(IEnumerable<T>)
    XListPool.ToListPooled<T>(IEnumerable<T>)
    XListPool.ToListPooled<T>(IEnumerable<T>)
    StringUtility.ToCommaSeparatedString(IEnumerable)
    StringUtility.ToCommaSeparatedString(IEnumerable)
    StringUtility.ToLineSeparatedString(IEnumerable)
    StringUtility.ToLineSeparatedString(IEnumerable)
    StringUtility.ToSeparatedString(IEnumerable, string)
    StringUtility.ToSeparatedString(IEnumerable, string)
    Cloning.Clone(object, ICloner, bool)
    Cloning.Clone(object, ICloner, bool)
    Cloning.CloneViaFakeSerialization(object)
    Cloning.CloneViaFakeSerialization(object)
    ConversionUtility.ConvertTo(object, Type)
    ConversionUtility.ConvertTo(object, Type)
    ConversionUtility.ConvertTo<T>(object)
    ConversionUtility.ConvertTo<T>(object)
    ConversionUtility.IsConvertibleTo(object, Type, bool)
    ConversionUtility.IsConvertibleTo(object, Type, bool)
    ConversionUtility.IsConvertibleTo<T>(object, bool)
    ConversionUtility.IsConvertibleTo<T>(object, bool)
    Serialization.Serialize(object, bool)
    Serialization.Serialize(object, bool)
    TypeUtility.ToShortString(object, int)
    TypeUtility.ToShortString(object, int)
    UnityObjectUtility.IsUnityNull(object)
    UnityObjectUtility.IsUnityNull(object)
    UnityObjectUtility.ToSafeString(object)
    UnityObjectUtility.ToSafeString(object)
    XAnalyserProvider.Analyser(object, GraphReference)
    XAnalyserProvider.Analyser(object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(object, IGraphContext)
    XAnalyserProvider.Analysis(object, GraphReference)
    XAnalyserProvider.Analysis(object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(object, IGraphContext)
    XDescriptorProvider.Describe(object)
    XDescriptorProvider.Description(object)
    XDescriptorProvider.Description<TDescription>(object)
    XDescriptorProvider.Descriptor(object)
    XDescriptorProvider.Descriptor<TDescriptor>(object)
    XDescriptorProvider.HasDescriptor(object)
    Cloning.CloneViaFakeSerialization<T>(T)
    Cloning.CloneViaFakeSerialization<T>(T)
    Cloning.Clone<T>(T, ICloner, bool)
    Cloning.Clone<T>(T, ICloner, bool)
    LinqUtility.Yield<T>(T)
    LinqUtility.Yield<T>(T)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, bool)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, bool)
    Serialization.CloneViaSerialization<T>(T, bool)
    Serialization.CloneViaSerialization<T>(T, bool)
    In This Article
    Back to top
    Copyright © 2025 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)