I have 2 classes which are exactly same except the name. I do not have access to either of the class to change anything in it. In my code, I need to copy one of one class to another class. How can I do this?
class A
{
string a;
}
class b
{
string a;
}
a a1=new a();
b b1=new b1();
a1=b1;
I want to assign one class object to another class object in c# code.