public bool TryGetValue(string key, KeyType type, out string value)
        {
            int cnt = this.InnerList.Count;

            value = String.Empty;

            for (int i = 0; i < cnt; i++)
            {
                NamespaceValue ns = this[i];

                switch (type)
                {
                case KeyType.Name:
                    if (ns.Name == key)
                    {
                        value = ns.Namespace;
                        return(true);
                    }
                    break;

                default:
                    if (ns.Namespace == key)
                    {
                        value = ns.Name;
                        return(true);
                    }
                    break;
                }
            }



            return(false);
        }
        public bool ContainsName(string Name)
        {
            int cnt = this.InnerList.Count;


            for (int i = 0; i < cnt; i++)
            {
                NamespaceValue ns_value = this[i];

                if (ns_value.Name == Name)
                {
                    return(true);
                }
            }

            return(false);
        }
        public string GetName(string Namespace)
        {
            string value = String.Empty;

            int cnt = this.InnerList.Count;


            for (int i = 0; i < cnt; i++)
            {
                NamespaceValue ns_value = this[i];

                if (ns_value.Namespace == Namespace)
                {
                    return(ns_value.Name);
                }
            }

            return(value);
        }
 public void Add(NamespaceValue context)
 {
     this.InnerList.Add(context);
 }