public Method GetMethod(string name) { foreach (Method mtd in AllMethods()) { if (name == mtd.Name) { return(mtd); } } if (Father == null) { return(null); } return(Father.GetMethod(name)); }