public string GetTypeWhereMethod(string name) { if (Methods.Select(m => m.Name).Contains(name)) { return(Name); } return(Father.GetTypeWhereMethod(name)); }