In eclipse, when I code in Java, there is a feature to auto-generate a basic, efficient, and bug free implementation of hashCode()
and equals()
without
The Real Solution to use the Visual Studio itself. There is a built in mechanism, which can generate these functions:
Description with pictures: https://docs.microsoft.com/en-us/visualstudio/ide/reference/generate-equals-gethashcode-methods?view=vs-2019#how-to