private static bool ObjEquals(object obj, object obj2) { if (obj == obj2) { return true; } if (obj == null) { return obj2 == null; } return obj.Equals(obj2); }