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); }
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); }