public void SetValue(string key, object value) { if (storage.HasKey(key)) { BindData data = storage.GetData(key); data.SetValue(value); } else { BindData data = new BindData(); data.SetValue(value); storage.AddData(key, data); } }