示例#1
0
 public NamespaceModel(IProject parentProject, NamespaceModel parent, string name)
 {
     this.parentProject   = parentProject;
     this.parent          = parent;
     this.name            = name;
     this.typeDefinitions = new NullSafeSimpleModelCollection <ITypeDefinitionModel>();
     this.childNamespaces = new NullSafeSimpleModelCollection <NamespaceModel>();
 }
示例#2
0
        public AssemblyReferencesModel(IAssemblyModel parentAssemblyModel)
        {
            if (parentAssemblyModel == null)
            {
                throw new ArgumentNullException("parentAssemblyModel");
            }

            assemblyNames            = new NullSafeSimpleModelCollection <IAssemblyReferenceModel>();
            this.parentAssemblyModel = parentAssemblyModel;
        }
 public SolutionAssemblyList(ISolution solution)
 {
     this.solution = solution;
     if (solution != null)
     {
         Name       = solution.Name;
         Assemblies = new NullSafeSimpleModelCollection <IAssemblyModel>();
         Assemblies.AddRange(solution.Projects.Select(p => p.AssemblyModel));
     }
 }