Exemple #1
0
        /// <summary>
        /// Returns a list of actions
        /// </summary>
        /// <param name="actions"></param>
        /// <returns></returns>
        private static IEnumerable <IAction> GetActions(this TouchActions actions)
        {
            List <IAction> retVal = null;

            if (null == actions)
            {
                return(null);
            }

            try
            {
                //var compositeActionObj = _ActionFieldInfo.Value.GetValue(actions);
                retVal = _ActionsListFieldInfo.Value.GetValue(actions.Build()) as List <IAction>;
            }
            catch
            {
                // unable to get the field
            }

            return(retVal);
        }