Struct AsyncEventHub.EventGroup
Represents a group of events.
Assembly: DotNext.Threading.dll
Syntax
public readonly struct AsyncEventHub.EventGroup : IReadOnlyCollection<int>, IEnumerable<int>, IEnumerable, IEquatable<AsyncEventHub.EventGroup>
Constructors
View Source
EventGroup(ReadOnlySpan<int>)
Initializes a new group of events.
Declaration
public EventGroup(ReadOnlySpan<int> indices)
Parameters
Exceptions
Properties
View Source
Count
Gets a number of events in this group.
Declaration
public int Count { get; }
Property Value
Methods
View Source
Contains(int)
Checks whether the specified event is in this group.
Declaration
public bool Contains(int index)
Parameters
| Type |
Name |
Description |
| int |
index |
The index of the event.
|
Returns
| Type |
Description |
| bool |
true if the event with index index is in this group; otherwise, false.
|
View Source
Equals(EventGroup)
Declaration
public bool Equals(AsyncEventHub.EventGroup other)
Parameters
Returns
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetEnumerator()
Gets an enumerator over indices in this group.
Declaration
public AsyncEventHub.EventGroup.Enumerator GetEnumerator()
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(EventGroup, EventGroup)
Declaration
public static bool operator ==(AsyncEventHub.EventGroup left, AsyncEventHub.EventGroup right)
Parameters
Returns
View Source
operator !=(EventGroup, EventGroup)
Declaration
public static bool operator !=(AsyncEventHub.EventGroup left, AsyncEventHub.EventGroup right)
Parameters
Returns
Implements
Extension Methods