comparing objects
C#
2
Posts
2
Posters
0
Views
1
Watching
-
-
i have a static custom class that keeps track of app settings by reading a db, i periodically retrieve a new list, and want to compare that to the static class (both are the same type) how would i go about doing that, would CompareTo() work for this?
Have you considered creating a custom Equals or CompareTo method? If not you should have. The Equals method from object class compares instances not the data within the objects.
I will use Google before asking dumb questions