getting a warning in asp.net while reading data using mssql
Posted on 2012-04-04
xNotField = reader.GetName(fcount) == "DATA_TYPE" && reader[fcount] == "timestamp";
xNotField = xNotField & xID == reader[fcount] ;
warning CS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'
reader[fcount] == "timestamp";