private static bool CompareValue(object o1, object o2) { return o1.GetType() == o2.GetType() && Object.Equals(o1, o2); }
This method compare the types of two object and then check their value.
Solve the problems in programmers way.
private static bool CompareValue(object o1, object o2) { return o1.GetType() == o2.GetType() && Object.Equals(o1, o2); }
No comments:
Post a Comment