public bool Equals(DocumentSnapshotWrapper?other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (GetType() != other.GetType()) { return(false); } if (ReferenceEquals(_documentSnapshot, other._documentSnapshot)) { return(true); } return(_documentSnapshot.Equals(other._documentSnapshot)); }