Show / Hide Table of Contents

Class ControllerHashSet<T>

Inheritance
System.Object
ThreadSafeHashSet<T>
ControllerHashSet<T>
Implements
IHashSet
System.Collections.Generic.IReadOnlySet<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.Generic.IReadOnlyCollection<T>
ISnapshotable<T>
ISnapshotable
NetFabric.Hyperlinq.IValueEnumerable<T, System.Collections.Immutable.ImmutableHashSet.Enumerator<>>
IClientControlledContainer
ITrackedControllerEnumerable
ITrackedEnumerable
System.Collections.IEnumerable
Inherited Members
ThreadSafeHashSet<T>.SetEquals(IEnumerable<T>)
ThreadSafeHashSet<T>.ContainsCast(Object)
ThreadSafeHashSet<T>.Contains(T)
ThreadSafeHashSet<T>.Contains(IEnumerable<T>)
ThreadSafeHashSet<T>.SnapshotAndClear()
ThreadSafeHashSet<T>.Set(IEnumerable)
ThreadSafeHashSet<T>.AddRange(IEnumerable<T>)
ThreadSafeHashSet<T>.GetEnumerator()
ThreadSafeHashSet<T>.IHashSet.Add(Object)
ThreadSafeHashSet<T>.IHashSet.Remove(Object)
ThreadSafeHashSet<T>.TypeName
ThreadSafeHashSet<T>.Count
ThreadSafeHashSet<T>.Snapshot
ThreadSafeHashSet<T>.ISnapshotable<T>.Snapshot
ThreadSafeHashSet<T>.ISnapshotable.Snapshot
Namespace: Eco.Core.Utils
Assembly: Eco.Core.dll
Syntax
public class ControllerHashSet<T> : ThreadSafeHashSet<T>, IHashSet, IReadOnlySet<T>, IEnumerable<T>, IReadOnlyCollection<T>, ISnapshotable<T>, ISnapshotable, IValueEnumerable<T, ImmutableHashSet<T>.Enumerator>, IClientControlledContainer, ITrackedControllerEnumerable, ITrackedEnumerable, IEnumerable
Type Parameters
Name Description
T

Constructors

ControllerHashSet()

Declaration
protected ControllerHashSet()

ControllerHashSet(IController, String)

Declaration
public ControllerHashSet(IController parent, [ControllerPropertyName(null)] string propertyName)
Parameters
Type Name Description
IController parent
System.String propertyName

Properties

Callbacks

Declaration
public TrackingCallbacks Callbacks { get; }
Property Value
Type Description
TrackingCallbacks

Parent

Declaration
public IController Parent { get; }
Property Value
Type Description
IController

PropertyName

Declaration
public string PropertyName { get; }
Property Value
Type Description
System.String

Type

Declaration
public Type Type { get; }
Property Value
Type Description
System.Type

Methods

Add(T)

Declaration
public override bool Add(T item)
Parameters
Type Name Description
T item
Returns
Type Description
System.Boolean
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.Add(T)

Clear()

Declaration
public override void Clear()
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.Clear()

ContainsOnly(IEnumerable<T>)

Returns true if and only if the set contains each element in the enumerbale and no others. Does not support duplicates in entries list.

Declaration
public bool ContainsOnly(IEnumerable<T> entries)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> entries
Returns
Type Description
System.Boolean

GetAndClear()

Declaration
public override ImmutableHashSet<T> GetAndClear()
Returns
Type Description
System.Collections.Immutable.ImmutableHashSet<T>
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.GetAndClear()

GetAndClearMatching(Func<T, Boolean>)

Declaration
public override IEnumerable<T> GetAndClearMatching(Func<T, bool> test)
Parameters
Type Name Description
System.Func<T, System.Boolean> test
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.GetAndClearMatching(System.Func<T, System.Boolean>)

Remove(T)

Declaration
public override bool Remove(T item)
Parameters
Type Name Description
T item
Returns
Type Description
System.Boolean
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.Remove(T)

RemoveAll(Func<T, Boolean>)

Declaration
public override int RemoveAll(Func<T, bool> match)
Parameters
Type Name Description
System.Func<T, System.Boolean> match
Returns
Type Description
System.Int32
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.RemoveAll(System.Func<T, System.Boolean>)

RemoveAllAndReturn(Func<T, Boolean>)

Declaration
public override IEnumerable<T> RemoveAllAndReturn(Func<T, bool> match)
Parameters
Type Name Description
System.Func<T, System.Boolean> match
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.RemoveAllAndReturn(System.Func<T, System.Boolean>)

RemoveRange(IEnumerable<T>)

Declaration
public override void RemoveRange(IEnumerable<T> range)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> range
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.RemoveRange(System.Collections.Generic.IEnumerable<T>)

RemoveRangeAndReturn(IEnumerable<T>)

Declaration
public override IEnumerable<T> RemoveRangeAndReturn(IEnumerable<T> range)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> range
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.RemoveRangeAndReturn(System.Collections.Generic.IEnumerable<T>)

Set(IEnumerable<T>)

Declaration
public override void Set(IEnumerable<T> e)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> e
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.Set(System.Collections.Generic.IEnumerable<T>)

UnionWith(IEnumerable<T>)

Declaration
public override void UnionWith(IEnumerable<T> entries)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> entries
Overrides
Eco.Core.Utils.ThreadSafeHashSet<T>.UnionWith(System.Collections.Generic.IEnumerable<T>)

Explicit Interface Implementations

IClientControlledContainer.Add(INetObject, Object)

Declaration
bool IClientControlledContainer.Add(INetObject caller, object e)
Parameters
Type Name Description
INetObject caller
System.Object e
Returns
Type Description
System.Boolean

IClientControlledContainer.Remove(INetObject, Object)

Declaration
bool IClientControlledContainer.Remove(INetObject caller, object item)
Parameters
Type Name Description
INetObject caller
System.Object item
Returns
Type Description
System.Boolean

IClientControlledContainer.Set(INetObject, IEnumerable<Object>)

Declaration
bool IClientControlledContainer.Set(INetObject caller, IEnumerable<object> e)
Parameters
Type Name Description
INetObject caller
System.Collections.Generic.IEnumerable<System.Object> e
Returns
Type Description
System.Boolean

Implements

IHashSet
System.Collections.Generic.IReadOnlySet<>
System.Collections.Generic.IEnumerable<>
System.Collections.Generic.IReadOnlyCollection<>
ISnapshotable<T>
ISnapshotable
NetFabric.Hyperlinq.IValueEnumerable<, >
IClientControlledContainer
ITrackedControllerEnumerable
ITrackedEnumerable
System.Collections.IEnumerable

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾