R
Rik Hemsley
How does one go about getting a pointer to method as an IntPtr?
Example:
public class A
{
public void X()
{
Y(Z);
}
public void Y(IntPtr z)
{
}
public void Z()
{
}
}
This won't compile, because the compiler thinks I meant Y(Z()).
I'm guessing this must be possible, because classes inheriting from
System.EventHandler have ctors which takes a parameter called 'method',
whose type is IntPtr.
Cheers,
Rik
Example:
public class A
{
public void X()
{
Y(Z);
}
public void Y(IntPtr z)
{
}
public void Z()
{
}
}
This won't compile, because the compiler thinks I meant Y(Z()).
I'm guessing this must be possible, because classes inheriting from
System.EventHandler have ctors which takes a parameter called 'method',
whose type is IntPtr.
Cheers,
Rik