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;
}