static Wisdom Make(int key) { Wisdom wisdom = null; WisdomFactory tmp = top; while (tmp) { wisdom = tmp.Create(key); if (wisdom) { return(wisdom); } tmp = tmp.next; } }
public static Wisdom Make(int key) { Wisdom w = null; WisdomFactory tmp = top; while (tmp != null) { w = tmp.Create(key); if (w != null) { return(w); } tmp = tmp.next; } return(null); }