Code:
private bool method_0(string string_1, Process process_0)
{
Class0 class2 = new Class0 {
string_0 = string_1
};
return Enumerable.Any<ProcessModule>(process_0.Modules.Cast<ProcessModule>(), new Func<ProcessModule, bool>(class2, (IntPtr) this.method_0));
}
error CS0428: Cannot convert method group 'method_0' to non-delegate type 'System.IntPtr'. Did you intend to invoke the method?
this is because method_0 needs more arguments so i try this...
Code:
private bool method_0(string string_1, Process process_0)
{
Class0 class2 = new Class0 {
string_0 = string_1
};
return Enumerable.Any<ProcessModule>(process_0.Modules.Cast<ProcessModule>(), new Func<ProcessModule, bool>(class2, (IntPtr) this.method_0(string_0,process_0)));
}
error CS0030: Cannot convert type 'bool' to 'System.IntPtr'
any idea to fix this issue?