I am having this class:
public class A
{
public int Var1 { get; set; }
public int Var2 { get; set; }
public int Var3 { get; set; }
public A()
{
}
public void Load(A sender)
{
this.Var1 = sender.Var1;
this.Var2 = sender.Var2;
this.Var3 = sender.Var3;
}
}
Since i have a lot of variables in my class, i do not want to assign each value every time inside my Load function, is there a way i say like this = sender since both are same type?