That's the nature of classes, they are reference type. Create a copy constructor for MyClass
class MyClass
{
public MyClass(MyClass myClass)
{
//Assign the properties here
//this.x = myClass.x;
//....
//....
}
}
then you call
MyClass dupeClass = new MyClass(@class);