G
Guest
Hello
I'm not sure if I understeand the garbage collector. Is this code legal, or
will days well destroyed when this function exits:
private int[] GetDays()
int[] days = new int[2];
days[0] = 0;
days[1] = 30;
return days;
}
private void GetVehicleList()
{
int[] days = GetDays();
I'm not sure if I understeand the garbage collector. Is this code legal, or
will days well destroyed when this function exits:
private int[] GetDays()
int[] days = new int[2];
days[0] = 0;
days[1] = 30;
return days;
}
private void GetVehicleList()
{
int[] days = GetDays();