Call one of two methods dynamically : <p>Is there a way to convert this if/else statement so that it can be called in a more dynamic way without using reflection?</p>

<pre><code>if (left.IsColliding()) directions.Remove(Direction.Left);
else directions.Add(Direction.Left);
</code></pre>

<p>In JavaScript I can do the following and I was wondering if there was something similar in C#.</p>

<pre><code>directions[left.IsColliding() ? "Remove" : "Add"](Direction.Left);
</code></pre>
