private void OnErrorReceived(string Message) { ErrorReceivedEventhandler handler = ErrorReceived; handler?.Invoke(this, Message); }
private void OnErrorReceived <T>(string Message) where T : DataObject, new() { ErrorReceivedEventhandler handler = ErrorReceived; handler?.Invoke(this, Message); }