Hi all,
I need to verify a DataRow has valid values and thus I am checking my PK which is a Guid.
I am doing this:
if ((Guid)dr["Track_Id"] != null || (Guid)dr["Track_Id"] != Guid.Empty)
{
}
I am getting a message "Unreachable expression code detected" on the last portion of the check.
Is there a better way to verify a DataRow has values than this? Why would the second check be unreachable?
Thanks
Tim
Timothy Bryan