O'Reilly logo

C# 3.0 Entwurfsmuster by Judith Bishop

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Anhang A. Anhang

Beispielcode für das Steckbarer-Adapter-Muster – CoolBook

Dies ist der Code für ein Beispiel eines steckbaren Adapters:

using System; using System.Collections.Generic; using System.Windows.Forms; using System.Drawing; using System.Threading; // Adapter-Muster-Beispiel Judith Bishop Aug 2007 // Erstellt ein CoolBook // Von D-J, für das Buch geändert class AdapterPattern { // Klasse SpaceBookSystem { public delegate void InputEventHandler(object sender, EventArgs e, string s); // Adapter public class MyCoolBook : MyOpenBook { static SortedList<string, MyCoolBook> community = new SortedList<string, MyCoolBook>(100); Interact visuals; public MyCoolBook(string name) : base(name) { // Erstelle Interact für den relevanten Thread und starte ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required