13.11. Summary

This chapter provided you with a number of examples of how generic classes, methods, interfaces, and delegates can be used within the J# environment. Through these examples, you should have gotten a clearer picture of the J# generics syntax and general mechanics. The chapter also pointed out some factors you'll want to keep in mind as you're consuming externally defined generic types.

Although the J# language is certainly lagging behind C# and VB in its support for generics, the generic capabilities it does support in version 2.0 of the .NET Framework still represent a significant addition to the language. The ability to simply consume generic types is a big step forward for the language. It should be clear that the mere ability to leverage the built-in BCL containers will bring a greater level of type safety, expressiveness, and performance to your existing J# solutions.

Get Professional .NET 2.0 Generics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.