/// <summary>
 /// Checks if the PropRule is of the correct Type
 /// </summary>
 /// <param name="rule"></param>
 /// <returns></returns>
 public static bool IsOfType <TRuleType>(this IPropRule rule) where TRuleType : IPropRule
 {
     return(rule.GetType() == typeof(TRuleType));
 }