Abc.NCrafts.Quizz.Questions._027.Answer3.Run C# (CSharp) 메소드

Run() 공개 정적인 메소드

public static Run ( ) : void
리턴 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