コード例 #1
0
        public void Publish()
        {
            currentSerialNumber++;
            var newspaper = new Newspaper(currentSerialNumber, "HOT NEWS", "The New York Times Bla-bla-bla...");

            NewspaperPublished?.Invoke(newspaper);
        }
コード例 #2
0
        public void Publish()
        {
            currentSerialNumber++;
            var newspaper = new Newspaper(currentSerialNumber, "HURRY TO READ!", "The Times Bla-bla-bla...");

            NewspaperPublished?.Invoke(newspaper);
        }