nektra / Deviare-InProc

Deviare In Process Instrumentation Engine
http://nektra.com/products/deviare-api-hook-windows/deviare-in-process/
Other
330 stars 84 forks source link

hook .NET methods Property error #14

Closed besoeso closed 6 years ago

besoeso commented 8 years ago

Hi, While i doing any test with .NET got a "Error type: System.ArgumentNullException"

The test case is the follow:

public class TestClass { public String Name;

public Object Value { get { return "the value"; } set { Name=value; } } }

ClassDetours { public String Name_detour;

    public Object Value_detour
    {
        get
        {
            return "answer_detour";
        }

        set
        {
          Name_detour=value;
        }
    }

} }

o = cHook.Hook(typeof(TestClass), "Value", new Type[] {} , typeof(ClassDetours), "Value_detour",new Type[] {});

Regards.