mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
25 lines
No EOL
887 B
C#
25 lines
No EOL
887 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Indy.IL2CPU.Plugs;
|
|
|
|
namespace Indy.IL2CPU.IL.X86.CustomImplementations.System {
|
|
[Plug(Target = typeof(Delegate))]
|
|
//[PlugField(FieldId = "$$Method$$", FieldType = typeof(object))]
|
|
//[PlugField(FieldId = "$$Object$$", FieldType = typeof(object))]
|
|
public static class DelegateImpl {
|
|
//[PlugMethod(Signature = "System_IntPtr___System_Delegate_GetInvokeMethod____")]
|
|
//public static unsafe uint GetInvokeMethod(uint* aThis, [FieldAccess(Name = "$$Method$$")]uint aInvokeMethod) {
|
|
// //return *(aThis + 2);
|
|
// return aInvokeMethod;
|
|
//}
|
|
|
|
//public static void DoSomethingWithDelegate(Delegate aDelegate) {
|
|
// // fake method to have the type Delegate referenced by the assembly
|
|
// object o = aDelegate.Target;
|
|
// object o2 = o;
|
|
|
|
//}
|
|
}
|
|
} |