For examples sake I have made up a very simple example.
I have an object called foo1 which is of type foo. I want to be able to call
a funtion called myfunc as follows:
myfunc(ref foo1)
here's the function :
public void myfunc(ref object foo)
{
do some stuff
}
I get the following errors:
The best overloaded method match for myfunc(ref object)' has some invalid
arguments
Argument '1' cannot convert from 'ref foo' to 'ref object'
I have an object called foo1 which is of type foo. I want to be able to call
a funtion called myfunc as follows:
myfunc(ref foo1)
here's the function :
public void myfunc(ref object foo)
{
do some stuff
}
I get the following errors:
The best overloaded method match for myfunc(ref object)' has some invalid
arguments
Argument '1' cannot convert from 'ref foo' to 'ref object'
Comment