T
Tatyana
I have a function
private static TypeA GetA()
{...}
Now I need to pass object that I get from GetA() as a
reference to a base class constructor. How to do it?
I tried doing
public MyClass() :
base(GetA())
{
}
but the compiler complains
"Argument '1': cannot convert from 'TypeA' to 'ref TypeA'
"
Please help.
Thanks,
Tatyana
private static TypeA GetA()
{...}
Now I need to pass object that I get from GetA() as a
reference to a base class constructor. How to do it?
I tried doing
public MyClass() :
base(GetA())
{
}
but the compiler complains
"Argument '1': cannot convert from 'TypeA' to 'ref TypeA'
"
Please help.
Thanks,
Tatyana