Abc.NCrafts.Quizz.Questions._027.Answer3.Run C# (CSharp) Méthode

Run() public static méthode

public static Run ( ) : void
Résultat 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