Class IndexedEventSource
Source identifier for IIndexedEvent.
For more details see Javadoc.
public class IndexedEventSource
- Inheritance
-
IndexedEventSource
- Derived
- Inherited Members
Constructors
IndexedEventSource(int, string)
Initializes a new instance of the IndexedEventSource class.
public IndexedEventSource(int id, string name)
Parameters
Fields
DEFAULT
The default source with zero identifier for all events that do not support multiple sources.
public static readonly IndexedEventSource DEFAULT
Field Value
Properties
Id
Gets a source identifier. Source identifier is non-negative.
public int Id { get; }
Property Value
Name
Gets a name of identifier.
public string Name { get; }
Property Value
Methods
Equals(object?)
Indicates whether some other indexed event source has the same id.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
- bool
true
if the specified object is equal to the current object; otherwise,false
.
GetHashCode()
Returns a hash code value for this object. The result of this method is equal to Id.
public override int GetHashCode()
Returns
- int
A hash code value for this object.
ToString()
Returns a string representation of the object.
public override string ToString()
Returns
- string
A string representation of the object.