mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-31 05:11:08 +00:00
18 lines
628 B
C#
18 lines
628 B
C#
using System;
|
|
using System.Reflection;
|
|
using XSharp.Compiler;
|
|
|
|
namespace Cosmos.IL2CPU.Plugs.Assemblers
|
|
{
|
|
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.GetMethodLabel(xMethod));
|
|
}
|
|
}
|
|
}
|