Patcher.Rules.RuleCompiler.GetMethod C# (CSharp) Method

GetMethod() private method

private GetMethod ( Type type, string name ) : MethodInfo
type System.Type
name string
return System.Reflection.MethodInfo
        private MethodInfo GetMethod(Type type, string name)
        {
            MethodInfo method = type.GetMethod(name);
            if (method == null)
                throw new InvalidProgramException("Method " + name + " not found in compiled rule " + type.Name + ".");

            return method;
        }