mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using IL2CPU.API.Attribs;
|
|
|
|
namespace Cosmos.Core_Asm
|
|
{
|
|
[Plug(Target = typeof(Delegate), Inheritable = true)]
|
|
public static unsafe class DelegateImpl
|
|
{
|
|
[PlugMethod(Assembler = typeof(DelegateCtorAsm), IsWildcard = true, WildcardMatchParameters = true)]
|
|
public static void Ctor(Delegate aThis, object aTarget, IntPtr aMethod)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[PlugMethod(IsWildcard = true, Assembler = typeof(DelegateInvokeAsm))]
|
|
public static void Invoke()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[PlugMethod(Assembler = typeof(DelegateGetMulticastInvokeAsm))]
|
|
public static IntPtr GetMulticastInvoke(Delegate aThis)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public static bool Equals(Delegate aThis, object aThat)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public static int GetHashCode(Delegate aThis, [FieldAccess(Name = "System.IntPtr System.Delegate._methodPtr")] ref IntPtr aAddress)
|
|
{
|
|
return (int)aAddress.ToPointer();
|
|
}
|
|
}
|
|
}
|