public EnumDeclaration AddEnum(string name, bool flags)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }
            if (this.enums.Contains(name))
            {
                throw new ArgumentException("enum already present");
            }
            EnumDeclaration e = new EnumDeclaration(name, this, flags);

            this.enums.Add(e);
            return(e);
        }
		public EnumDeclaration AddEnum(string name, bool flags)
		{
			if (name==null)
				throw new ArgumentNullException("name");
			if (this.enums.Contains(name))
				throw new ArgumentException("enum already present");
			EnumDeclaration e = new EnumDeclaration(name,this,flags);
			this.enums.Add(e);
			return e;
		}