private static bool Before(Command command, Object obj) { if (obj != null) { Func<bool> before = obj.Before(command.Verb.GetType()); if (before != null) { return before(); } } return false; }