Lets say we have two objects o1 & o2 defined as System.Object, in my situtaion o1 & o2 can be any of the following types:
- String
- Int32
- Double
- Boolean
- DateTime
- DBNull
So how can I check that o1 & o2 are equal, therefore are the same object or both have the same type & value.
Can I just do o1 == o2 or do I need to do o1.Equals(o2) or something else?
Thanks,
AJ