Skip to content

Commit 11e2e6e

Browse files
committed
Add XML docs to TrayRelayCommand and ITrayCommand
1 parent d2173a2 commit 11e2e6e

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/NativeTray/TrayRelayCommand.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ public class TrayRelayCommand(Action<object?> execute, Func<bool>? canExecute =
1414
private readonly Action<object?> _execute =
1515
execute ?? throw new ArgumentNullException(nameof(execute));
1616

17+
/// <inheritdoc/>
1718
public bool CanExecute()
1819
{
1920
return canExecute?.Invoke() ?? true;
2021
}
2122

23+
/// <inheritdoc/>
2224
public void Execute(object? commandParameter)
2325
{
2426
if (CanExecute())
@@ -33,9 +35,14 @@ public void Execute(object? commandParameter)
3335
/// </summary>
3436
public interface ITrayCommand
3537
{
36-
// Returns true if the command can currently be executed.
38+
/// <summary>
39+
/// Returns true if the command can currently be executed.
40+
/// </summary>
3741
public bool CanExecute();
3842

39-
// Executes the command's action.
43+
/// <summary>
44+
/// Executes the command's action.
45+
/// </summary>
46+
/// <param name="commandParameter">command's parameter</param>
4047
public void Execute(object? commandParameter);
4148
}

0 commit comments

Comments
 (0)