private bool IsCommand(MethodBase method)
{
if (method.IsSpecialName)
{
if (method.Name.StartsWith("set_"))
{
return true;
}
// only property sets are commands
return false;
}
// TODO: should we really consider any public
// method a command?
// wouldn't it be better to consider only the methods
// declared by the type:
// return method.DeclaringType == _system.GetType()
return true;
}