Пример #1
0
        internal override object FromInternal(object obj)
        {
            if (!NeedConversion() || obj == null)
            {
                return(obj);
            }

            var hashTable          = (Hashtable)obj;
            var convertedHashtable = new Hashtable(hashTable.Count);

            foreach (DictionaryEntry entry in hashTable)
            {
                convertedHashtable[KeyType.FromInternal(entry.Key)] =
                    ValueType.FromInternal(entry.Value);
            }

            return(convertedHashtable);
        }