public void Func1() { //MyClass myClass = new MyClass(); //MyData myData = myClass.Foo(); //int value = myData.value; //myData.value = 1; MyData m = new MyData(); MyData b = m; }
public MyData Clone() { MyData temp = new MyData(); temp.value = this.value; return temp; }