Пример #1
0
        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));
        }
Пример #2
0
            public RuleConditionInfo([NotNull] Type type, [NotNull] RuleConditionAttribute attribute)
            {
                Assert.ArgumentNotNull(type, nameof(type));
                Assert.ArgumentNotNull(attribute, nameof(attribute));

                Type      = type;
                Attribute = attribute;
            }