I want to create a C# struct that stores a class type property which later can be instantiated.
I created the struct like this:
internal struct Command<T>
{
internal string trigger;
internal T clazz;
internal string category;
}
Then I want to store these Command structs in a dictionary:
private Dictionary<string, Command> _commandMap;
How do I define the dict so that its value type is set correctly for Command? Or is my whole approach wrong?