示例#1
0
        public Dictionary <string, string> GetAllKeys2()
        {
            KeyElement[] elements = new KeyElement[base.Count];

            Dictionary <string, string> keys = new Dictionary <string, string>(elements.Length);

            for (int i = 0; elements != null && i < elements.Length; i++)
            {
                KeyElement k = (KeyElement)base.BaseGet(i);

                keys.Add(k.Name, k.Value);
            }
            return(keys);
        }
示例#2
0
        public KeyValuePair <string, string>[] GetAllKeys1()
        {
            KeyElement[] elements = new KeyElement[base.Count];

            KeyValuePair <string, string>[] keys = new KeyValuePair <string, string> [elements.Length];

            for (int i = 0; elements != null && i < elements.Length; i++)
            {
                KeyElement k = (KeyElement)base.BaseGet(i);

                keys[i] = new KeyValuePair <string, string>(k.Name, k.Value);
            }
            return(keys);
        }