public static Create ( |
||
info | ||
return |
public static CallInstruction Create(MethodInfo info) {
return Create(info, info.GetParameters());
}
CallInstruction::Create ( |
public DynamicInstructionN(Type delegateType, CallSite site) { var methodInfo = delegateType.GetMethod("Invoke"); var parameters = methodInfo.GetParameters(); _target = CallInstruction.Create(methodInfo, parameters); _site = site; _argumentCount = parameters.Length - 1; _targetDelegate = site.GetType().GetField("Target").GetValue(site); }