compare object to string in C#

前端 未结 0 1004
故里飘歌
故里飘歌 2020-12-01 19:21

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 == "         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题