Skip to content

Method to get all commands from the ICommandStore #19

@JeremyEspresso

Description

@JeremyEspresso

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)!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions