public static void LoadType([NotNull] Type type, [NotNull] RuleConditionAttribute ruleConditionAttribute) { Assert.ArgumentNotNull(type, nameof(type)); Assert.ArgumentNotNull(ruleConditionAttribute, nameof(ruleConditionAttribute)); conditions.Add(new RuleConditionInfo(type, ruleConditionAttribute)); }
public RuleConditionInfo([NotNull] Type type, [NotNull] RuleConditionAttribute attribute) { Assert.ArgumentNotNull(type, nameof(type)); Assert.ArgumentNotNull(attribute, nameof(attribute)); Type = type; Attribute = attribute; }