G
Guest
Hi,
I have two classes. Base and Derived. I want to call assign operator in
function f in Derived
In C++, I can do it like following -- void Derived::f(Base obj){ *this =
obj;}.
Now in c#, I write a function SetData(Base obj) to do it. But I am wondering
whether there is similar way (or standard way) in C# to do it.
Best Regards,
Michael zhang
I have two classes. Base and Derived. I want to call assign operator in
function f in Derived
In C++, I can do it like following -- void Derived::f(Base obj){ *this =
obj;}.
Now in c#, I write a function SetData(Base obj) to do it. But I am wondering
whether there is similar way (or standard way) in C# to do it.
Best Regards,
Michael zhang