「eq、ne、gt、...」などのパラメーターを取得してデータを比較するケースステートメントがあります。実際には、このメソッドはフィルター パラメーターとフィルター値を取得することでデータをフィルター処理します。以下のコードをリファクタリングするにはどうすればよいですか? ありがとう。
For iRow As Integer = 1 To ......
.......
columnData = rowData(HeaderIndex)
Case "eq"
If Not (columnData = filterData) Then
arrayDel(iRow) = True
droppedRows += 1
End If
Case "ne"
If Not (columnData <> filterData) Then
arrayDel(iRow) = True
droppedRows += 1
End If
Case "gt"
If Not (columnData > filterData) Then
arrayDel(iRow) = True
droppedRows += 1
End If
Case "ge"
If Not (columnData >= filterData) Then
arrayDel(iRow) = True
droppedRows += 1
End If