private static void GetMethodsFromType(List<MethodDefinition> ret, TypeDefinition type) { if (type.ContainsIgnoreAttribute()) return; foreach(var method in type.GetMethods()) { if (method.ContainsIgnoreAttribute()) continue; ret.Add(method); } foreach(var nested in type.NestedTypes) { GetMethodsFromType(ret, nested); } }