|
-
December 30th, 2010, 12:59 PM
#2
Re: Generic Types
Well, you can find some examples in the .NET library itself.
Look at the collections classes. This is a good example of a case in which you don't really care about the type of an object, you just want a container for n number of them. The container doesn't have any clue if they are ints, strings, MyClass', whatever, it doesn't matter. What matters is that they can be stored and iterated through.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|