예제 #1
0
        private static void SendMessage(string message)
        {
            // 取得該抽象別別的具體實作物件,並且執行該物件的方法
            var fooIMessage = MyDI.Resolve <IMessage>();

            fooIMessage.Write(message);
        }
예제 #2
0
        private static void SendMessage(string message)
        {
            var fooIMessage = MyDI.Resolve <IMessage>();

            fooIMessage.Write(message);
        }