DynamicServices.Sakurity.MethodAccessExpression.GetMethod C# (CSharp) Method

GetMethod() private method

private GetMethod ( string method ) : MethodInfo
method string
return 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;
        }