I want to set an object equal to other object values in C# core, not by reference!
x.len=10;
val y=x;
y.len=x.len*2;
I expect y.len to be set to 20 and x.len to remain unchanged, but both y.len and x.len are 20, I am looking for a way to disconnect x and y.
I remember that in VB6 we had something like ByRef and ByVal which gave us the ability to control this thing, is there a similar thing in C# Core 3.x?