B
barkmaz
Hey,
Can we send an inherited object into a function which requires its
base class as REF?
class y
class x : y
func DoSomething(ref y)
DoSomething(ref x);
gives an error. If I send object without Ref, then modifications on
object get lost when DoSomething func ends.
Can someone describe this for me? Thanks.
Can we send an inherited object into a function which requires its
base class as REF?
class y
class x : y
func DoSomething(ref y)
DoSomething(ref x);
gives an error. If I send object without Ref, then modifications on
object get lost when DoSomething func ends.
Can someone describe this for me? Thanks.