Question : what is byref in csharp? help with my function

my class is sumthing like this
myclass(1st,2nd)
{ private a;
 private b;
....
}

here's my problem, i need to pass it as a by reference but it does not change the original variable
public void sumthing()
{
myclass newname = new myclass(0,0)


dosumthinglese(newname);

messagebox(myclass.a);
messagebox(myclass.b);

}


dosumthingelse(myclass passclass)
{
passclass.a = 1;
passclass.b = 2;
}


a little help please.

Answer : what is byref in csharp? help with my function

Yes, this is written in my first post:

dosumthinglese(ref newname);
Random Solutions  
 
programming4us programming4us