Abc.NCrafts.Quizz.Questions._027.Answer3.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            var type = Type.GetType("System.Int32");

            // begin
            var key = new Key { Value = 42 };
            var result = type == typeof(int)
                ? key.GetHashCode()
                : key.Value.GetHashCode();
            // end

            Logger.Log("Result: {0}", result);
        }
Answer3