protected static void Init(IDomainMap domainMap) { ISourceListMap srcListMap; IClassListMap clsListMap; if (domainMap.SourceListMapPaths.Count > 0) { foreach (string filePath in domainMap.SourceListMapPaths) { srcListMap = SourceListMap.Load(filePath); foreach (ISourceMap sourceMap in srcListMap.SourceMaps) { domainMap.SourceMaps.Add(sourceMap); } } } if (domainMap.ClassListMapPaths.Count > 0) { foreach (string filePath in domainMap.ClassListMapPaths) { clsListMap = ClassListMap.Load(filePath); foreach (IClassMap classMap in clsListMap.ClassMaps) { domainMap.ClassMaps.Add(classMap); } } } domainMap.Setup(); }