A
Archer
I defined my class as:
class List
{
public List Next;
public int Data;
public List()
{
Data=0;
}
}
¡¡¡¡¡¡¡¡
after the programme below ran,
List d=new List();
List e=new List();
e.Data=4;
d=e;
d.Data=5;
The value of e.Data became 5,What does it do?if I don't want the
e.Data'value changed,what should i do? btw:the operator = can't be override
in c#.Thank you
class List
{
public List Next;
public int Data;
public List()
{
Data=0;
}
}
¡¡¡¡¡¡¡¡
after the programme below ran,
List d=new List();
List e=new List();
e.Data=4;
d=e;
d.Data=5;
The value of e.Data became 5,What does it do?if I don't want the
e.Data'value changed,what should i do? btw:the operator = can't be override
in c#.Thank you