public GenericPath _GeneratePath(GenericPath gp) { gp.Add(cell); if (parent != null) { return(parent._GeneratePath(gp)); } return(gp); }
public GenericPath GeneratePath() { GenericPath gp = new GenericPath(); return(_GeneratePath(gp)); }