mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
19 lines
635 B
C#
19 lines
635 B
C#
using System.Reflection;
|
|
using Cosmos.Assembler;
|
|
using Cosmos.IL2CPU;
|
|
using XSharp.Common;
|
|
|
|
namespace Cosmos.Core_Asm
|
|
{
|
|
public class DelegateGetMulticastInvokeAsm : AssemblerMethod
|
|
{
|
|
public override void AssembleNew(Cosmos.Assembler.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));
|
|
}
|
|
}
|
|
}
|