示例#1
0
        public TypeGenerationInfo(TypeName typeName, string baseName)
        {
            this.typeName = typeName;
            this.baseName = baseName;

            nestedElementsCollector = new InfoCollector<NestedElementGenerationInfo, GroupGenerationInfo>(flatNestedElements, groups);

            attributesCollector = new InfoCollector<AttributeGenerationInfo, AttributesGroupGenerationInfo>(attributes, attributeGroups);
        }
示例#2
0
        public EnumGenerationInfo(TypeName typeName, IDictionary<string, string> namesValues, IDictionary<string, string> namesXmlValues)
        {
            if (typeName == null) throw new ArgumentNullException("typeName");
            if (namesValues == null) throw new ArgumentNullException("namesValues");
            if (namesXmlValues == null) throw new ArgumentNullException("namesXmlValues");

            this.typeName = typeName;
            this.namesValues = namesValues;
            this.namesXmlValues = namesXmlValues;

            Assert.Check(namesValues.Count == namesXmlValues.Count);
        }