Hi,
is it possible to pass by reference using variables from different methods please ? Or is there another way to do this? I want to do this so as i can take all the values from the different methods and write to a file.
an example:
Thank you for your time.
is it possible to pass by reference using variables from different methods please ? Or is there another way to do this? I want to do this so as i can take all the values from the different methods and write to a file.
an example:
C#:
public void minimum()
{
int min = 20;
WriteFile(ref min);
}
public void maximum()
{
int max = 60;
WriteFile(ref max);
}
public void average()
{
int avg = 40;
WriteFile(ref avg);
}
public void WriteFile(ref int min, ref int max, ref int avg)
{
....
}
Thank you for your time.