Pro VB 2008 and the .NET 3.5 PlatformThe point of this chapter was to demystify the garbage collection process. As you have seen, the garbage collector will only run when it is unable to acquire the necessary memory from the m- aged heap (or when a given AppDomain unloads from memory). When a garbage collection does occur, you can rest assured that Microsoft’s collection algorithm has been optimized by the use of object generations, secondary threads for the purpose of object finalization, and a managed heap dedicated to host large objects. This chapter also illustrated how to programmatically interact with the garbage collector using the System. GC class type. As mentioned, the only time when you will really need to do so is when you are building finalizable or disposable class types. Recall that finalizable types are classes that have overridden the virtual System. Object. Finalize() method to clean up unmanaged resources (at some time in the future). Disposable objects, on the other hand, are classes (or structures) that implement the IDisposable interface. Using this technique, you expose a public method to the object user that can be called to perform internal cleanup ASAP. Finally, you learned about an of- cial “disposal” pattern that blends both approaches. PART 3 Advanced VB Programming Constructs CHAPTER 9 Working with Interface Types This chapter builds on your current understanding of object-oriented development by examining the topic of interface-based programming. |
Contents
The Philosophy of NET | 3 |
CHAPTER | 6 |
PART | 7 |
CHAPTER | 9 |
CHAPTER | 12 |
CHAPTER | 15 |
CHAPTER | 16 |
CHAPTER | 19 |
Summary | 841 |
Introducing Windows Workflow Foundation | 843 |
Examining the WFEngine Hosting Code | 856 |
Building a Reusable WF Code Library | 873 |
Desktop Applications with Windows Forms | 881 |
Rendering Graphical Data with GDI+ | 929 |
Programming with Windows Forms Controls | 983 |
Desktop Applications with | 1044 |
CHAPTER | 21 |
CHAPTER | 22 |
CHAPTER | 25 |
CHAPTER | 27 |
CHAPTER | 30 |
CHAPTER | 32 |
CHAPTER | 33 |
Building Visual Basic 2008 Applications | 35 |
VB 2008 Programming Constructs Part I | 65 |
INDEX | 83 |
VB 2008 Programming Constructs Part II | 103 |
Designing Encapsulated Class Types | 129 |
Understanding Inheritance and Polymorphism | 173 |
Understanding Structured Exception Handling | 207 |
Understanding Object Lifetime | 233 |
Collections Generics and Nullable Data Types | 291 |
Delegates Events and Lambdas | 327 |
Operator Overloading and Custom Conversion Routines | 359 |
VB 2008Specific Language Features | 383 |
An Introduction to LINQ | 409 |
Introducing the NET Base Class Libraries | 606 |
Introducing Object Serialization | 633 |
The Connected Layer | 653 |
The Disconnected Layer | 705 |
Programming with the LINQ APIs | 759 |
Introducing Windows Communication Foundation | 795 |
The ABCs of WCF | 808 |
Building the WCF Client Application | 824 |
Investigating the WPFAssemblies | 1053 |
Building a XAMLFree WPF Application | 1060 |
Building a XAMLCentric WPF Application | 1070 |
Separation of Concerns Using CodeBehind Files | 1078 |
Building WPFApplications Using Visual Studio 2008 | 1091 |
The Role of Microsoft Expression Blend | 1099 |
Programming with WPF Controls | 1103 |
Declaring Controls in XAML | 1106 |
Understanding Routed Events | 1112 |
Working with CheckBoxes and RadioButtons | 1120 |
Working with TextAreas | 1129 |
Building a Windows Frame Using Nested Panels | 1141 |
Understanding WPF Control Commands | 1147 |
WPF 2D Graphical Rendering Resources and Themes | 1167 |
Exploring the ShapeDerived Types | 1175 |
Exploring the DrawingDerived Types | 1181 |
Understanding WPFs Animation Services | 1187 |
Understanding the WPF Resource System | 1195 |
Altering a Controls UI Using Templates | 1207 |
Building ASP NET Web Pages | 1215 |
The Role of ClientSide Scripting | 1224 |
The ASP NET Namespaces | 1230 |
Details of an ASP NET Website Directory Structure | 1242 |
Interacting with the Outgoing HTTP Response | 1250 |
The Role of the web configFile | 1256 |
ASP NET Web Controls Themes and Master Pages | 1261 |
ASP NET State Management Techniques | 1297 |
Other editions - View all
Common terms and phrases
able additional allows application arguments array assembly assigned assume attribute base class build ByVal Chapter collection compiler Console Console.ReadLine Console.WriteLine construct constructor contains create custom data types default define delegate derived Employee End Class End Function End Sub End error event examine example exception execution expression extension fact field Figure final Function given handle illustrate Implements Imports Inherits initial instance Integer interface invoke keyword language libraries located managed method Module named namespace Note Notice object Once operator Option Overrides parameter pass possible Private programming provides Public Class Public Sub reference represent result Return runtime shared simply single Source Code specify statement String structure Sub End Module syntax System Table thread understand update variable Visual Basic Visual Studio 2008 Windows wish