Ejemplo n.º 1
0
        public MethodInfo GetMethodInfo()
        {
            if (mType == null)
            {
                mType = Type.GetType(TypeName) ??
                        AppDomain.CurrentDomain.GetAssemblies()
                        .SelectMany(a => a.GetTypes())
                        .First(t => t.AssemblyQualifiedName == TypeName);
                //mType = Type.GetType(TypeName, true);
            }
            if (mType == null)
            {
                return(null);
            }

            var methods = Super.CollectMethods(mType);

            return(methods.FirstOrDefault(i => i.Name == MethodName));
        }