public static CA.IRule GetProxy (GF.IRule rule) { if (!boundProxies.ContainsKey (rule)) throw new ArgumentException (AddinCatalog.GetString ("{0} rule has not been cached but it should.", rule), "rule"); return boundProxies [rule]; }
internal GendarmeRule (GF.IRule rule) { this.rule = rule; object [] attrs = rule.GetType ().GetCustomAttributes (typeof (GF.ProblemAttribute), false); if (attrs == null || attrs.Length == 0) return; GF.ProblemAttribute problem = (GF.ProblemAttribute) attrs [0]; description = problem.Problem; }
internal GendarmeViolation (GF.Defect defect) { this.defect = defect; this.location = new CA.CodeLocation(string.Empty, 0, 0); }