static public ActionInstance GetActionInstanceByParentablePath(this TargetInstance item, TargetInstance parent, string full_path, IEnumerable <object> arguments) { if (full_path.TryTrimPrefix("parent.", out full_path)) { return(parent.GetActionInstanceByPath(full_path, arguments)); } return(item.GetActionInstanceByPath(full_path, arguments)); }
static public ActionInstance GetActionInstanceByPath(this TargetInstance item, string full_path, params object[] arguments) { return(item.GetActionInstanceByPath(full_path, (IEnumerable <object>)arguments)); }