Store operator and use directly?
<p>I.. just want to try to see if I can do with some new appounch.</p>

<p>I have a txt file with bunch of conditionals comparsion with values, i.e:</p>

<pre><code>Parameter1!=Value2
</code></pre>

<p>Then I will read them and put each of them into my "Condition" object, and I will able to run the condition result to look put in Parameter1 and see if is not equal to Value2.</p>

<p>I just wonder if there is a type in C# that I cn store the conditon parameter?
So in the object there might define as:</p>

<pre><code>operator InputOperator = "!=";
</code></pre>

<p>Then I can use it directly in the code:</p>

<pre><code>if (Parameter1 ConditionObj.InputOperator ConditionObj.Value2)
{
 //do stuff
}
</code></pre>

<p>I know there is many other appounches, I just wonder if there is something like that exisits in C#.</p>

<p>Thanks in advance.</p>
