Пример #1
0
 public OutputModelBase(string type, INamespace ns, IDesignModel designModel = null, IProjectFile file = null, OutputModelMergeMode mergeMode = OutputModelMergeMode.Skip)
 {
     Type                = type;
     Namespace           = ns;
     DesignModel         = designModel;
     File                = file;
     OutputConfiguration = new OutputConfiguration.OutputConfiguration(Namespace?.OutputConfiguration);
     MergeMode           = mergeMode;
 }
Пример #2
0
        public DesignModelBase(string name, string type, INamespace ns, IXmlElement element = null, IParseLocationInfo parseLocation = null)
        {
            Name            = name;
            DesignModelType = type;
            Element         = element;
            ParseLocation   = parseLocation ?? element?.ParseLocation;
            Namespace       = ns;

            if (ns != null)
            {
                OutputConfiguration = new OutputConfiguration.OutputConfiguration(ns.OutputConfiguration);
            }
        }
Пример #3
0
 public Namespace(string name, INamespace parent)
 {
     Name                = parent?.Name != null ? $"{parent.Name}.{name}" : name;
     SegmentName         = name;
     OutputConfiguration = new OutputConfiguration.OutputConfiguration(parent?.OutputConfiguration);
 }