protected override object[] GetItems(object editValue)
 {
     if (editValue == null)
     {
         return new object[0];
     }
     StringDictionary dictionary = editValue as StringDictionary;
     if (dictionary == null)
     {
         throw new ArgumentNullException("editValue");
     }
     object[] objArray = new object[dictionary.Count];
     int num = 0;
     foreach (DictionaryEntry entry in dictionary)
     {
         EditableDictionaryEntry entry2 = new EditableDictionaryEntry((string) entry.Key, (string) entry.Value);
         objArray[num++] = entry2;
     }
     return objArray;
 }
        protected override object[] GetItems(object editValue)
        {
            if (editValue == null)
            {
                return(new object[0]);
            }
            StringDictionary dictionary = editValue as StringDictionary;

            if (dictionary == null)
            {
                throw new ArgumentNullException("editValue");
            }
            object[] objArray = new object[dictionary.Count];
            int      num      = 0;

            foreach (DictionaryEntry entry in dictionary)
            {
                EditableDictionaryEntry entry2 = new EditableDictionaryEntry((string)entry.Key, (string)entry.Value);
                objArray[num++] = entry2;
            }
            return(objArray);
        }
        protected override object[] GetItems(object editValue)
        {
            if (editValue != null)
            {
                StringDictionary dictionary = editValue as StringDictionary;

                if (dictionary == null)
                {
                    throw new ArgumentNullException("editValue");
                }

                object[] ret = new object[dictionary.Count];
                int      pos = 0;
                foreach (DictionaryEntry entry in dictionary)
                {
                    EditableDictionaryEntry newEntry = new EditableDictionaryEntry((string)entry.Key, (string)entry.Value);
                    ret[pos++] = newEntry;
                }
                return(ret);
            }

            return(new object[0]);
        }