I found the ICommandExecutor interface in .net but cant find the classes where it is implemented. I know there is some xaml related stuff where it's used. But is there something for the winforms, too?
+6
A:
It's implemented in MenuItemData which is an inner class of System.Windows.Forms.MenuItem.
In general if you're looking to find out what interefaces are implemented where, the quickest way to get the answer is via Reflector. It makes queries like this incredibly easy.
JaredPar
2009-04-03 13:56:43
Uhm, I was hopeing that there is more use of the Command design pattern in .netBut the hint with reflector is very great.
Tarion
2009-04-03 15:30:01
A:
I think its the Command design pattern, but it was not the intent to be used. That's why the vendor tells us no to use it: http://msdn.microsoft.com/en-us/library/system.windows.forms.icommandexecutor%28VS.85%29.aspx.
It should be done in a way to be used since it's a common artifact in every UI oriented application that is based on design patterns.
Ciao.
gonzalo.vinas
2009-09-08 12:10:34