static private CheckInputBounds ( |
||
playable | ||
inputIndex | int | |
return | bool |
public bool RemoveInput(int index) { if (!Playables.CheckInputBounds(this, index)) { return(false); } Playable.Disconnect(this, index); return(true); }
/// <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); }