I have the following code in order to compare a value read from a DB with some expected values:
object o = row.get_Value(fieldIndex); bool equal = o == "