private void SetProperty(string key, object value) { if(ContainsKey(key)) { this[key] = value; } else { Add(key, value); } }