示例#1
0
        public ProjectType(ProjectNamespace projectNamespace)
        {
            this.projectNamespace = projectNamespace;

            this.fields = new Dictionary<string, ProjectMember>();
            this.properties = new Dictionary<string, ProjectMember>();
            this.methods = new Dictionary<string, ProjectMember>();
        }
示例#2
0
        public ProjectNamespace EnsureNamespace(String namespacePath)
        {
            ProjectNamespace pn = this.GetNamespace(namespacePath);

            if (pn == null)
            {
                pn = new ProjectNamespace(this);
                pn.Path = namespacePath;

                this.namespaces.Add(namespacePath.ToLower(), pn);
            }

            return pn;
        }