Cosmos/source/Compiler/Indy.IL2CPU.X86.Plugs/System/EventHandlerImpl.cs
mterwoord_cp b493bf136c
2009-09-12 16:49:12 +00:00

21 lines
774 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Indy.IL2CPU.Plugs;
namespace Indy.IL2CPU.X86.Plugs.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;
}
}
}