Getting Hash code in C#

The below code can be used to get hash code for a string.

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

            string name = "code";

            int value = name.GetHashCode();

            Console.WriteLine(value);
            
                        
        }

    }
}

Output:

1985170611