public void SetCustomVariableValue(string name, object value) { for(int i = 0; i < mCustomVariables.Count; i++) { PropertyValuePair pvp = mCustomVariables[i]; if (pvp.Property == name) { pvp.Value = value; mCustomVariables[i] = pvp; break; } } }