|
|
submitted by
Hyle
1 year, 11 months ago
en.csharp-online.net — Learn the usage and benefits of generics to define a class and method without specifying a particular type. Excerpt: With the release of .NET 2.0, the C# programming language has been enhanced to support a new feature of the CTS termed generics. Simply put, generics provide a way for programmers to define “placeholders” (formally termed type parameters) for method arguments and type definitions, which are specified at the time of invoking the generic method or creating the generic type. To illustrate this new language feature, this chapter begins with an examination of the System.Collections.Generic namespace. Once you’ve seen generic support within the base class libraries, in the remainder of this chapter you’ll examine how you can build your own generic members, classes, structures, interfaces, and delegates.
|
|
tags:
Generics, C# | tag it
Everyones tags: | Your tags: | |
|
|
|
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking
the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
Users who kicked this story:
No comments so far
|