Tangerine.BLL.XAPAssembly.GetMethods C# (CSharp) Method

GetMethods() public method

public GetMethods ( ) : IEnumerable
return IEnumerable
        public IEnumerable<MethodDefinition> GetMethods()
        {
            foreach (TypeDefinition typeDefinition in GetTypes())
            {
                foreach (MethodDefinition methodDefinition in typeDefinition.Methods)
                {
                    yield return methodDefinition;
                }
            }
        }

Same methods

XAPAssembly::GetMethods ( string fullTypeName ) : IEnumerable

Usage Example

Ejemplo n.º 1
0
 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);
     }
 }