void before_each()
 {
     _subject = new SubjectToHook();
 }
示例#2
0
 void before_each()
 {
     _subject = new SubjectToHook();
     _notToBeGCed = Hook;
     _hook = CreateHook(new InProcessMemory(), _subject.ManagedPointer, Marshal.GetFunctionPointerForDelegate(_notToBeGCed));
 }
 void before_each()
 {
     _subject = new SubjectToHook();
 }
示例#4
0
 void before_each()
 {
     _subject     = new SubjectToHook();
     _notToBeGCed = Hook;
     _hook        = CreateHook(new InProcessMemory(), _subject.ManagedPointer, Marshal.GetFunctionPointerForDelegate(_notToBeGCed));
 }