public IEnumerable<MethodDefinition> GetMethods() { foreach (TypeDefinition typeDefinition in GetTypes()) { foreach (MethodDefinition methodDefinition in typeDefinition.Methods) { yield return methodDefinition; } } }
private void FillAssemblyMethods(XAPAssembly xapAssembly) { foreach (var method in xapAssembly.GetMethods()) { var hook = new MethodHook(method) { LogMethodName = true, LogParameterValues = true, LogReturnValues = true }; m_hooks.Add(hook); } }