Add source

This commit is contained in:
hexadecimal
2025-04-24 20:51:29 +03:00
parent 9badc969b8
commit e3c1cdea0e
92 changed files with 13471 additions and 0 deletions
@@ -0,0 +1,24 @@
using System;
using System.Threading;
using System.Windows.Forms;
namespace Bunifu.Licensing.Compatibility
{
/// <summary>
/// Helper methods for delegate compatibility across different .NET versions
/// </summary>
internal static class DelegateExtensions
{
// Helper method to create a ThreadStart delegate
public static ThreadStart CreateThreadStart(Action action)
{
return new ThreadStart(action);
}
// Helper method to create a MethodInvoker delegate
public static MethodInvoker CreateMethodInvoker(Action action)
{
return new MethodInvoker(action);
}
}
}