Ported 'NonReadonlyReferenceInGetHashCodeIssue'.