private bool EqualFields(object v1, object v2) { if (v1 == null) return v2 == null; if (v2 == null) return false; return v1.Equals(v2); }