public void SetDictionaryData(object key, object value) { if (value == null) { if (dictionaryData == null) return; dictionaryData[key] = null; } else { if (dictionaryData == null) dictionaryData = new Hashtable(); dictionaryData[key] = value; } }