Example #1
0
		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];
		}
Example #2
0
		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;
		}
Example #3
0
		internal GendarmeViolation (GF.Defect defect)
		{
			this.defect = defect;
			this.location = new CA.CodeLocation(string.Empty, 0, 0);
		}