Beispiel #1
0
 public AbcNamespace this[AbcConst <string> name, AbcConstKind kind]
 {
     get
     {
         string key = name.MakeKey(kind);
         return(this[key]);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Defines namespace with given name.
        /// </summary>
        /// <param name="kind">kind of namespace to define.</param>
        /// <param name="name">name of namespace to define.</param>
        /// <returns></returns>
        public AbcNamespace DefineNamespace(AbcConstKind kind, AbcConst <string> name)
        {
            string key = name.MakeKey(kind);
            var    ns  = Namespaces[key];

            if (ns != null)
            {
                return(ns);
            }
            ns = new AbcNamespace(name, kind, key);
            Namespaces.Add(ns);
            return(ns);
        }
Beispiel #3
0
 public AbcNamespace(AbcConst <string> name, AbcConstKind kind)
     : this(name, kind, name.MakeKey(kind))
 {
 }