create copy of class for function C# code example
Example: c# copy an object
class TestClass
{
public TestClass Copy()
{
return MemberwiseClone();
}
}
class TestClass
{
public TestClass Copy()
{
return MemberwiseClone();
}
}