DataEvent

The DataEvent class encapsulates the return type of the LayGO API functions lgo_Read() and lgo_ReadSpecial().

using LaygoApi;

try
{
    DataEvent data = cid.Read();

    if (data != null)
    {
        LogData(data);
    }
}
catch (ProtocolEventException ex)
{
    LogEvent(ex);
}