It would be nice to have a method that returns all commands in the command store.
Currently I am using the reflection way as per the samples to retrieve all commands:
|
var commandCount = ((List<ICommand>)_commandStore.GetType() |
|
.GetField("_currentCommands", |
|
BindingFlags.NonPublic | BindingFlags.Instance)! |
|
.GetValue(_commandStore)!) |
It would be nice to have a method that returns all commands in the command store.
Currently I am using the reflection way as per the samples to retrieve all commands:
Finite.Commands/samples/Console/LineReaderService.cs
Lines 45 to 48 in 773bb4a