コード例 #1
0
        /// <summary>
        /// Gets a value indicating whether the collection contains the specified action.
        /// </summary>
        /// <param name="action">The action to evaluate.</param>
        /// <returns><see langword="true"/> if the collection contains the specified action; otherwise, <see langword="false"/>.</returns>
        internal Boolean Contains(TriggerAction action)
        {
            Contract.Require(action, nameof(action));

            return(actions.Contains(action));
        }
コード例 #2
0
        /// <summary>
        /// Removes an action from the collection.
        /// </summary>
        /// <param name="action">The action to remove from the collection.</param>
        /// <returns><see langword="true"/> if the action was removed from the collection; otherwise, <see langword="false"/>.</returns>
        internal Boolean Remove(TriggerAction action)
        {
            Contract.Require(action, nameof(action));

            return(actions.Remove(action));
        }
コード例 #3
0
        /// <summary>
        /// Adds an action to the collection.
        /// </summary>
        /// <param name="action">The action to add to the collection.</param>
        internal void Add(TriggerAction action)
        {
            Contract.Require(action, nameof(action));

            actions.Add(action);
        }
コード例 #4
0
        internal Boolean Contains(TriggerAction action)
        {
            Contract.Require(action, nameof(action));

            return actions.Contains(action);
        }
コード例 #5
0
        internal void Add(TriggerAction action)
        {
            Contract.Require(action, nameof(action));

            actions.Add(action);
        }
コード例 #6
0
        internal Boolean Remove(TriggerAction action)
        {
            Contract.Require(action, nameof(action));

            return actions.Remove(action);
        }