P
parez
Hi
I want to assign the values of properties of object A to objectB
They both belong to different classes but implement on common
interface. I just want to assign the properties defined in the
interface.
Will this work?
ClassA a = new ClassA()
classb b = new classB();
IMyinterface c= a;
b=c;
or should i write a function
BindData(object source, object target, Type interfaceType)
and use refelection
I want to assign the values of properties of object A to objectB
They both belong to different classes but implement on common
interface. I just want to assign the properties defined in the
interface.
Will this work?
ClassA a = new ClassA()
classb b = new classB();
IMyinterface c= a;
b=c;
or should i write a function
BindData(object source, object target, Type interfaceType)
and use refelection