DynamicServices.Sakurity.MethodAccessExpression.GetMethod C# (CSharp) 메소드

GetMethod() 개인적인 메소드

private GetMethod ( string method ) : MethodInfo
method string
리턴 System.Reflection.MethodInfo
        private MethodInfo GetMethod(string method)
        {
            method = method.ToLowerInvariant();
            var methodInfo = _TypeAccess.Type.GetMethods()
                .Where(m => m.Name.ToLowerInvariant() == method)
                .FirstOrDefault();
            if (methodInfo == null)
            {
                throw new ApplicationException(string.Format("Cannot find method {0} on type {1}", method, _TypeAccess.Type));
            }
            return methodInfo;
        }