private static GetRuleMethod ( |
||
recognizerClass | ||
name | string | |
return |
private static MethodInfo GetRuleMethod(Type recognizerClass, string name)
{
MethodInfo[] declaredMethods = recognizerClass.GetMethods();
foreach (MethodInfo method in declaredMethods)
{
if (method.Name.Equals(name) && Attribute.IsDefined(method, typeof(RuleVersionAttribute)))
{
return method;
}
}
return null;
}
RuleDependencyChecker::GetRuleMethod ( |