public List<Method> getRestaurantMethods() { var methods = new RestaurantManager(); var methodlist = methods.GetType().GetMethods().Where(p => p.Name.Contains("Restaurant")).ToList(); var methodreturn = new List<Method>(); foreach (var method in methodlist) { methodreturn.Add(new Method() { Name = method.Name, Returns = method.ReturnParameter.ToString() }); } // Add your operation implementation here return methodreturn; }