How can I tell if a variable does not end in a hyphen?
<p>I have c# variables such as </p>

<pre><code>var a = "ABC";
a = "def-";
a = "-";
</code></pre>

<p>Is there some simple test I could do so I could check if the variable does not end in a hyphen?</p>

<pre><code>if ( xxx )
</code></pre>
