CheckInputBounds() static private method

static private CheckInputBounds ( Playable playable, int inputIndex ) : bool
playable Playable
inputIndex int
return bool
Example #1
0
 public bool RemoveInput(int index)
 {
     if (!Playables.CheckInputBounds(this, index))
     {
         return(false);
     }
     Playable.Disconnect(this, index);
     return(true);
 }
Example #2
0
 /// <summary>
 /// <para>Removes a playable from the list of inputs.</para>
 /// </summary>
 /// <param name="index">Index of the playable to remove.</param>
 /// <returns>
 /// <para>Returns false if the removal could not be removed because it wasn't found.</para>
 /// </returns>
 public unsafe bool RemoveInput(int index)
 {
     if (!Playables.CheckInputBounds(*((Playable *)this), index))
     {
         return(false);
     }
     Playable.Disconnect(*((Playable *)this), index);
     return(true);
 }
        public bool RemoveInput(int index)
        {
            bool result;

            if (!Playables.CheckInputBounds(this, index))
            {
                result = false;
            }
            else
            {
                Playable.Disconnect(this, index);
                result = true;
            }
            return(result);
        }