public void SetValue(string key, string value) { if (KeyValues == null) { KeyValues = new KeyValuePair[0]; } KeyValues.Append(new KeyValuePair(key, value)); }