mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
19 lines
611 B
C#
19 lines
611 B
C#
using System.Reflection;
|
|
using XSharp.Assembler;
|
|
using Cosmos.IL2CPU;
|
|
using XSharp;
|
|
|
|
namespace Cosmos.Core_Asm
|
|
{
|
|
public class DelegateGetMulticastInvokeAsm : AssemblerMethod
|
|
{
|
|
public override void AssembleNew(Assembler aAssembler, object aMethodInfo)
|
|
{
|
|
var xAssembler = aAssembler;
|
|
var xMethodInfo = (MethodInfo)aMethodInfo;
|
|
var xDelegate = typeof(global::System.Delegate);
|
|
var xMethod = xDelegate.GetMethod("GetInvokeMethod", BindingFlags.NonPublic | BindingFlags.Instance);
|
|
XS.Push(ILOp.GetLabel(xMethod));
|
|
}
|
|
}
|
|
}
|