Skip to content

Commit

Permalink
fluent "add" for modal parameters (#414)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Sainty <chrissainty@users.noreply.github.com>
  • Loading branch information
erinnmclaughlin and chrissainty authored Aug 15, 2022
1 parent 7790540 commit 29e139e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Blazored.Modal/Configuration/ModalParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ public ModalParameters()
Parameters = new Dictionary<string, object>();
}

public void Add(string parameterName, object value)
=> Parameters[parameterName] = value;
public ModalParameters Add(string parameterName, object value)
{
Parameters[parameterName] = value;
return this;
}

public T Get<T>(string parameterName)
{
Expand Down

0 comments on commit 29e139e

Please sign in to comment.