GoCardless/Resources/Metadata.cs
/// <summary>Add a new key-value pair</summary>
Add a new key-value pair
Add a new key - value pair
public void Add(string key, string value)
        {
            if (key == null || key.Length > 50) throw new ArgumentException(nameof(key) + " is required and must be less than 50 characters");
            if (value == null || value.Length > 500) throw new ArgumentException(nameof(value) + " is required and must be less than 500 characters");
            if (this._items.Count >= 3) throw new InvalidOperationException("Only 3 keys are permitted");
            _items.Add(key, value);
        }
public void Add ( string key , string value ) { if ( key == null || key . Length > 50 ) throw new ArgumentException ( nameof ( key ) + " " ) ; if ( value == null || value . Length > 500 ) throw new ArgumentException ( nameof ( value ) + " " ) ; if ( this . _items . Count >= 3 ) throw new InvalidOperationException ( " " ) ; _items . Add ( key , value ) ; }
Add a new key-value pair
Add a new key - value pair
key
string
value
string