Пример #1
0
        public ProfileTypeInfo(ProfileTypeNode node)
        {
            Node = node;
            var root = (CatalogueBaseNode)node.Ancestors().Last();

            SourceName = root.Name;
        }
Пример #2
0
 public RuleConverter(ProfileTypeNode profileType, CharacteristicTypeNode characteristicType, ImmutableArray <RuleNode> rules)
 {
     ProfileType        = profileType;
     CharacteristicType = characteristicType;
     Rules    = rules;
     Profiles = Rules.ToImmutableDictionary(x => x.Id, ConvertRuleToProfile);
 }