General information
Title:
Recursive Method calls in C#
Is it possible to call a Method from within a method and are Variable retained from Calling Method:
e.g.
class myclass()
{
public counter
counter = 0
MyMethod(int y);
{
int x
x=y+1
if (counter < 10)
{
MyMethod(x);
}
}
}
Are each of the x local to each recursive call , ot is the variable x the just taking up the same area in memory for each call
Regards,
Gerard
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only