I have a custom attribute:
public class MenuItemAttribute : Attribute { }
and a class with a few methods:
public class Hell
Dictionary methods = assembly .GetTypes() .SelectMany(x => x.GetMethods()) .Where(y => y.GetCustomAttributes().OfType().Any()) .ToDictionary(z => z.Name);