Ejemplo n.º 1
0
        private void Visit(MethodReference method, string referencingEntityName)
        {
            if (method == null)
            {
                return;
            }

            var genericInstance = method as GenericInstanceMethod;

            if (genericInstance != null)
            {
                DispatchGenericArguments(genericInstance, referencingEntityName);
            }

            Visit(method.DeclaringType, referencingEntityName);
            Visit(method.ReturnType, referencingEntityName);

            foreach (var parameter in method.Parameters)
            {
                Visit(parameter.ParameterType, referencingEntityName);
            }

            _visitor.Visit(method, referencingEntityName);
        }