コード例 #1
0
ファイル: Bridge.cs プロジェクト: PlumpMath/DesignPattern-999
        public static void Demonstrate()
        {
            var faq = new FAQ {
                Questions = new List <string> {
                    "aa", "bbb"
                }, Title = "test faq"
            };

            faq.print();


            var book = new book {
                Text = "this is book", Title = "book 1", Author = "R. J. Simpson"
            };

            book.print();

            var backwbook = new backwordBook {
                Text = "this is book", Title = "book 1", Author = "R. J. Simpson"
            };

            backwbook.print();

            var paper = new TermPaper {
                Text = "a paper", Class = "s hand", References = "asdasd", Student = "iuhuu"
            };

            paper.print();
        }
コード例 #2
0
ファイル: Bridge.cs プロジェクト: pminevp/DesignPattern
        public static void Demonstrate()
        {
            var faq = new FAQ { Questions = new List<string> {"aa","bbb" }, Title="test faq"};
            faq.print();

            var book = new book { Text = "this is book", Title = "book 1", Author = "R. J. Simpson" };
            book.print();

            var backwbook = new backwordBook { Text = "this is book", Title = "book 1", Author = "R. J. Simpson" };
            backwbook.print();

            var paper = new TermPaper { Text="a paper", Class="s hand", References="asdasd", Student="iuhuu" };

            paper.print();
        }