private void PatchDelegate() { if (Method.HasImplementation) { return; } if (!Method.DeclaringType.IsDelegate) { return; } if (!DelegatePatcher.PatchDelegate(this)) { return; } IsCILDecodeRequired = false; IsExecutePipeline = true; if (Trace.IsTraceable(5)) { var traceLog = new TraceLog(TraceType.MethodDebug, Method, "XX-Delegate Patched", MethodData.Version); traceLog?.Log("This delegate method was patched"); Trace.PostTraceLog(traceLog); } }
private void PatchDelegate() { if (Method.HasImplementation) { return; } if (!Method.DeclaringType.IsDelegate) { return; } if (!DelegatePatcher.PatchDelegate(this)) { return; } IsCILDecodeRequired = false; IsExecutePipeline = true; }