public void Add(String key, String value) { KeyValueConfigurationElement element = new KeyValueConfigurationElement(key, value); Add(element); }
private static KeyValueConfigurationCollection GetKeyValueCollection() { var collection = new KeyValueConfigurationCollection(); collection.Add("Name", "Value"); collection.Add("Email", "*****@*****.**"); collection.Add("Company", "IBM"); collection.Add("Year", "2011"); return collection; }