c# assigning object to new variable copy code example
Example: c# copy an object
class TestClass
{
public TestClass Copy()
{
return MemberwiseClone();
}
}
class TestClass
{
public TestClass Copy()
{
return MemberwiseClone();
}
}