示例#1
0
		public AssemblyModel(IEntityModelContext context)
		{
			if (context == null)
				throw new ArgumentNullException("context");
			this.context = context;
			this.rootNamespace = new NamespaceModel(context.Project, null, "");
			this.typeDeclarations = new TopLevelTypeDefinitionModelCollection(context);
			this.typeDeclarations.CollectionChanged += TypeDeclarationsCollectionChanged;
			this.namespaces = new KeyedModelCollection<string, NamespaceModel>(value => value.FullName);
			this.referencesModel = new AssemblyReferencesModel(this);
		}
示例#2
0
 public AssemblyModel(IEntityModelContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     this.context          = context;
     this.rootNamespace    = new NamespaceModel(context.Project, null, "");
     this.typeDeclarations = new TopLevelTypeDefinitionModelCollection(context);
     this.typeDeclarations.CollectionChanged += TypeDeclarationsCollectionChanged;
     this.namespaces      = new KeyedModelCollection <string, NamespaceModel>(value => value.FullName);
     this.referencesModel = new AssemblyReferencesModel(this);
 }