Class ControllerHashSet<T>
Inheritance
System.Object
ControllerHashSet<T>
Implements
System.Collections.Generic.IReadOnlySet<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.Generic.IReadOnlyCollection<T>
NetFabric.Hyperlinq.IValueEnumerable<T, System.Collections.Immutable.ImmutableHashSet.Enumerator<>>
System.Collections.IEnumerable
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
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
Parent
Declaration
public IController Parent { get; }
Property Value
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
System.Collections.Generic.IReadOnlySet<>
System.Collections.Generic.IEnumerable<>
System.Collections.Generic.IReadOnlyCollection<>
NetFabric.Hyperlinq.IValueEnumerable<, >
System.Collections.IEnumerable
Extension Methods