@idofficialcontract

Injector Не принимает более 5 аргументов?

public IntPtr Inject(byte[] rawAssembly, string @ namespace, string className, string methodName)
{
bool flag = rawAssembly == null;
if (flag)
{
throw new ArgumentNullException("rawAssembly");
}
bool flag2 = rawAssembly.Length == 0;
if (flag2)
{
throw new ArgumentException("rawAssembly cannot be empty", "rawAssembly");
}
bool flag3 = className == null;
if (flag3)
{
throw new ArgumentNullException("className");
}
bool flag4 = methodName == null;
if (flag4)
{
throw new ArgumentNullException("methodName");
}
this.ObtainMonoExports();
this._rootDomain = this.GetRootDomain();
IntPtr image = this.OpenImageFromData(rawAssembly);
this._attach = true;
IntPtr intPtr = this.OpenAssemblyFromImage(image);
IntPtr imageFromAssembly = this.GetImageFromAssembly(intPtr);
IntPtr classFromName = this.GetClassFromName(imageFromAssembly, Илья Ковалевский, className);
IntPtr methodFromName = this.GetMethodFromName(classFromName, methodName);
this.RuntimeInvoke(methodFromName);
return intPtr;
}
  • Вопрос задан
  • 69 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы