Not sure how to ask this question exactly, so here goes....Is there a way in .NET to use an operator as a variable, for example, instead of saying...

VB Code:
  1. sOperator = "="
  2.  
  3.             Select Case sOperator
  4.                 Case "="
  5.                     If sExpression1 = sExpression2 Then
  6.                         'do something
  7.                     End If
  8.                 Case "<="
  9.                     If sExpression1 <= sExpression2 Then
  10.                         'do something
  11.                     End If
  12.                 Case ">="
  13.                     If sExpression1 >= sExpression2 Then
  14.                         'do something
  15.                     End If
  16.                 Case "<"
  17.                     If sExpression1 < sExpression2 Then
  18.                         'do something
  19.                     End If
  20.                 Case ">"
  21.                     If sExpression1 > sExpression2 Then
  22.                         'do something
  23.                     End If
  24.                 Case "<>"
  25.                     If sExpression1 <> sExpression2 Then
  26.                         'do something
  27.                     End If
  28.             End Select

do something like this...

VB Code:
  1. sOperator = "="
  2.  
  3.             If sExpression1 sOperator sExpression2 Then
  4.                 'do something for every situation
  5.             End If

Now I know trying to do it exactly how I've written it here doesn't work, but you should get my point. Is there a way anyone has used before to utilize this same functionality? What I'm trying to do is provide different conditions to the user, and making the operator selectable for themt.

Any ideas and/or opinions are welcomed.

Thanks!

Sibby