> I have a routine to compare the current value with the original value of
> fields in a Datatable. The code loops through each column to compare the
[quoted text clipped - 20 lines]
>
> Any thoughts anyone?
How are a and b declared? They're probably as "object" in which case
the value is the boxed value and you're just checking for referential
equality.
Try object.Equals(a, b)

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Bob Bartel - 27 Feb 2008 17:02 GMT
Thank you. You nailed it!
bob
>> I have a routine to compare the current value with the original value of
>> fields in a Datatable. The code loops through each column to compare the
[quoted text clipped - 27 lines]
>
> Try object.Equals(a, b)