Search Results for

    Show / Hide Table of Contents

    Class EventTypesCollection

    Collection of EventType objects which provide identity information of an event.
    Inheritance
    object
    EventTypesCollection
    Implements
    IEnumerable<EventType>
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Core
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class EventTypesCollection : IEnumerable<EventType>, IEnumerable

    Methods

    Add(Type, byte)

    Adds event type along with the corresponding status byte.
    Declaration
    public void Add(Type type, byte statusByte)
    Parameters
    Type Name Description
    Type type Type of event.
    byte statusByte Status byte of event.
    Exceptions
    Type Condition
    ArgumentNullException type is null.
    ArgumentException Event type specified by type and statusByte already exists in the EventsCollection.

    GetEnumerator()

    Returns an enumerator that iterates through a collection.
    Declaration
    public IEnumerator<EventType> GetEnumerator()
    Returns
    Type Description
    IEnumerator<EventType> An enumerator that can be used to iterate through the collection.

    TryGetStatusByte(Type, out byte)

    Gets the status byte associated with the specified event type.
    Declaration
    public bool TryGetStatusByte(Type type, out byte statusByte)
    Parameters
    Type Name Description
    Type type Event type to get status byte for.
    byte statusByte When this method returns, contains the status byte associated with the specified event type, if the type is found; otherwise, 0. This parameter is passed uninitialized.
    Returns
    Type Description
    bool true if the EventTypesCollection contains a status byte for the specified event type; otherwise, false.

    TryGetType(byte, out Type)

    Gets the event type associated with the specified status byte.
    Declaration
    public bool TryGetType(byte statusByte, out Type type)
    Parameters
    Type Name Description
    byte statusByte The status byte of the event type to get.
    Type type When this method returns, contains the event type associated with the specified status byte, if the status byte is found; otherwise, null. This parameter is passed uninitialized.
    Returns
    Type Description
    bool true if the EventTypesCollection contains an event type with the specified status byte; otherwise, false.

    Implements

    IEnumerable<T>
    IEnumerable
    In this article
    Back to top 2024 / Generated by DocFX