Hello,
Here is my pb: I have a group of classes in 2 namespaces which are exactly
simlilar.
Theses classes are generated by Visual Studio when inserting a Web
Reference, having 2 versions of a web service with a total compatibility in
data structures, I need to write a program able to deal indiferently with
any version of the web service.
Writing a compatibility layer is very long and need lot of unecesary
create/delete to transfert from one object to its correspondant object and
call the web service api without having compiler refusing.
It could be very usefull to have something abale to say 'class1 is an alias'
of class2 and to be able to cast directly object of class1 to class2 and
vis-versa. All methods and properties of the class having same names and
type.
Any idea ?
Thanks, CS.
Here is my pb: I have a group of classes in 2 namespaces which are exactly
simlilar.
Theses classes are generated by Visual Studio when inserting a Web
Reference, having 2 versions of a web service with a total compatibility in
data structures, I need to write a program able to deal indiferently with
any version of the web service.
Writing a compatibility layer is very long and need lot of unecesary
create/delete to transfert from one object to its correspondant object and
call the web service api without having compiler refusing.
It could be very usefull to have something abale to say 'class1 is an alias'
of class2 and to be able to cast directly object of class1 to class2 and
vis-versa. All methods and properties of the class having same names and
type.
Any idea ?
Thanks, CS.
Comment