Cosmos/source/Compiler/Indy.IL2CPU.X86/IL/x86/CustomImplementations/System/EventHandlerImpl.cs
mterwoord_cp 1aaf59c09e
2009-09-10 14:49:05 +00:00

21 lines
771 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(EventHandler))]
public static class EventHandlerImpl {
public static void ctor(uint aThis, object aObject, IntPtr aMethod, [FieldAccess(Name = "System.Object System.Delegate._target")] ref object aFldTarget, [FieldAccess(Name = "System.IntPtr System.Delegate._methodPtr")] ref int aFldMethod) {
// move forward 8 bytes
aFldTarget = aObject;
aFldMethod = aMethod.ToInt32();
}
public static bool Equals(EventHandler aThis, object aThat) {
// todo: implement EventHandler.Equals(object)
return false;
}
}
}