Hi,
We have a generic code in our C# application which does bunch of comparisions between two databases and Stored Procedures. Recently we are hitting issue with following:
dataTable.Columns[i].DefaultValue.Equals(...)
Above statement is always returning false when Data Type is 'SqlGeography'. I checked SqlGeography class and seems like .Equals is NOT override and it will not be comparing values rather they have implemented 'STEquals'. But since we would have object of base class and we don't want to hard-code only for this one particular DataType. I'm wondering whats the reason behind not overriding '.Equals' and whats our alternate instead of adding check that if type is SqlGeogrphy then typecast it and call STEquals?
Thanks
Faisal.