Pro VB 2008 and the .NET 3.5 Platform
Produktnummer:
18543b97f2ae9342418db69a0d9e7b967d
Autor: | Troelsen, Andrew |
---|---|
Themengebiete: | .NET ASP.NET LINQ SQL Visual Basic Web Services Windows XML computer science functional programming |
Veröffentlichungsdatum: | 01.04.2008 |
EAN: | 9781590598221 |
Auflage: | 3 |
Sprache: | Englisch |
Seitenzahl: | 1377 |
Produktart: | Kassette / Medienmix z.B. Audio und Buch |
Verlag: | APRESS |
Produktinformationen "Pro VB 2008 and the .NET 3.5 Platform"
The 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.

Sie möchten lieber vor Ort einkaufen?
Sie haben Fragen zu diesem oder anderen Produkten oder möchten einfach gerne analog im Laden stöbern? Wir sind gerne für Sie da und beraten Sie auch telefonisch.
Juristische Fachbuchhandlung
Georg Blendl
Parcellistraße 5 (Maxburg)
8033 München
Montag - Freitag: 8:15 -18 Uhr
Samstags geschlossen