Why does Visual Studio add "-1937169414" to a generated hash code computation?

Why does Visual Studio add "-1937169414" to a generated hash code computation?

If you use Visual Studio's own refactoring menu to add a GetHashCode implementation to a class like this: and select the only int property in the class: it generates this code on .NET Framework:

If you use Visual Studio's own refactoring menu to add a GetHashCode implementation to a class like this:

Generate GetHashCode menu

and select the only int property in the class:

Member selection screen

it generates this code on .NET Framework:

public override int GetHashCode()
{
    return -1937169414 + Value.GetHashCode();
}

(it generates HashCode.Combine(Value) on .NET Core instead, which I'm not sure if it involves the same value)

What's special about this value? Why doesn't Visual Studio use Value.GetHashCode() directly? As I understand, it doesn't really affect hash distribution. Since it's just addition, consecutive values would still accumulate together.

EDIT: I only tried this with different classes with Value properties but apparently property name affects the number generated. For instance, if you rename the property to Halue, the number becomes 387336856.

c-sharp visual-studio vscode

What's new in Bootstrap 5 and when Bootstrap 5 release date?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Random Password Generator Online

HTML Color Picker online | HEX Color Picker | RGB Color Picker

Level-up your C++ productivity using Visual Studio

Come learn how you can improve your efficiency even while working from home. We’ll take a look at online development environments, Live Share, and a host of other new productivity features and tips.

Install Visual Studio 2019 Community – Best IDE for C#

Here is a straightforward tutorial on how to install Visual Studio 2019 Community onto Windows 10. Visual Studio 2019 is probably the best IDE ever for C# devs.

Modern C++ development with Visual Studio

Join us for a demo packed session on the latest improvements in Visual Studio 2019, including new C++20 features, cross-platform CMake integration, and support for Visual Studio Codespaces.

C++ Development with Visual Studio Code

If you’re looking for a fast and lightweight open-source code editor, Visual Studio Code has you covered.

Pixel Color Bot in C#, Visual Studio, .NET and WPF

Create a Pixel Color Bot in C# Visual Studio by using the .NET framework and WPF. This C# tutorial guides you through the development process of creating a pixel bot.