Öffnen Sie die Datei ". NET Reflector". Sie exportieren den Quellcode.
Ich öffne das Projekt in der "MS VS". Bearbeiten Sie es wie ich sollte. aber man kann nicht. Ich weiß nicht, was es ist. er schwört "MS VS".
private bool InterceptPInvokeMethod(string module, string entryPoint, string hookMethodName)
{
var predicate = null;
System.Func<ModuleReference, bool> func2 = null;
try
{
if (predicate == null)
{
predicate = <>h__TransparentIdentifier50 => <>h__TransparentIdentifier50.m.Name == hookMethodName;
}
MethodDefinition hook = (from <>h__TransparentIdentifier50 in (from t in this.localAssembly.MainModule.Types
from m in t.Methods
select new { t = t, m = m }).Where(predicate) select <>h__TransparentIdentifier50.m).Single<MethodDefinition>();
if (func2 == null)
{
func2 = x => x.Name == module;
}
if (this.buddyAssembly.MainModule.ModuleReferences.Where<ModuleReference>(func2).Count<ModuleReference>() > 0)
{
foreach (TypeDefinition definition2 in this.buddyAssembly.MainModule.Types)
{
this.InterceptPInvokeMethod(hook, definition2, module, entryPoint);
}
return true;
}
return false;
}
catch (Exception exception)
{
this.Log(exception.ToString());
return false;
}
}
Ошибка 10 Недопустимый элемент "<" в выражении
Ошибка 24 �*лемент "h__TransparentIdentifier50" не существует в текущем контексте.