Пример #1
0
        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));
        }
Пример #2
0
 static public ActionInstance GetActionInstanceByPath(this TargetInstance item, string full_path, params object[] arguments)
 {
     return(item.GetActionInstanceByPath(full_path, (IEnumerable <object>)arguments));
 }