mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-13 05:34:47 +00:00
Import SocketIO code
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace SocketIOClient.Extensions
|
||||
{
|
||||
internal static class EventHandlerExtensions
|
||||
{
|
||||
public static void TryInvoke<T>(this EventHandler<T> handler, object sender, T args)
|
||||
{
|
||||
handler?.Invoke(sender, args);
|
||||
}
|
||||
|
||||
public static void TryInvoke(this EventHandler handler, object sender, EventArgs args)
|
||||
{
|
||||
handler?.Invoke(sender, args);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user