Hi, everyone,
I want to find a proper way to convert different object types in the
different namespaces.
such as
namespace A
{
class C
{
public string name;
public string address;
}
}
namespace B
{
class C
{
public string name;
public string address;
}
}
A.C ca = new A.C();
I want to like that B.C cb = (B.C) ca. but it is wrong!!!(Once I have
a more complex object definition).
I know that i can use XML serialization to convert it .LIKE use XSD to
generate class.
But can I have a elegant approach to do it?
Any suggestion will be welcome.
Sincerely,
simida