public void SetExchangeArgument(string key, object value) { if (value != null) { ExchangeArguments[key] = value; } else { ExchangeArguments.Remove(key); } }
public void SetExchangeArgument(string key, object value) { if (key == null) { throw new ArgumentNullException(nameof(key)); } if (value == null) { ExchangeArguments.Remove(key); } else { ExchangeArguments[key] = value; } }