Files
BunifuUiCrack/Bunifu.Licensing/Compatibility/DelegateExtensions.cs
T
hexadecimal e3c1cdea0e Add source
2025-04-24 20:51:29 +03:00

24 lines
674 B
C#

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);
}
}
}