Predicates/SimpleParser/Helpers/FunctionsHelper.cs
/// <summary>
/// Given the function name, it returns the MethodInfo 
/// </summary>
/// <param name="name">The function name</param>
/// <returns>The MethodInfo for the function</returns>
Given the function name, it returns the MethodInfo
Given the function name it returns the MethodInfo
internal static MethodData Get(string name)
        {
            Functions.TryGetValue(name, out MethodInfo methodInfo);
            var parameters = methodInfo.GetParameters();
            bool isParams = parameters.Length != 0 ? IsParams(parameters.Last()) : false;
            return new MethodData(name, methodInfo, parameters, isParams);
        }
internal static MethodData Get ( string name ) { Functions . TryGetValue ( name , out MethodInfo methodInfo ) ; var parameters = methodInfo . GetParameters ( ) ; bool isParams = parameters . Length != 0 ? IsParams ( parameters . Last ( ) ) : false ; return new MethodData ( name , methodInfo , parameters , isParams ) ; }
Given the function name, it returns the MethodInfo
Given the function name it returns the MethodInfo
The MethodInfo for the function
The MethodInfo for the function
name
string
The function name
The function name