Generics Question

  • Thread starter Thread starter sloan
  • Start date Start date
S

sloan

I think someone posted about this before.


Outside of collection type stuff, what are possible uses of a Generic.
(Again, I'm cool with the collection type stuff).


Thanks.............
 
Hello sloan,
Outside of collection type stuff, what are possible uses of a Generic.
(Again, I'm cool with the collection type stuff).

Well, for one thing you can use it to write really Generic questions...
:-) *hint*

Generally, everywhere you can implement functionality independent of
types, you may want to consider using Generics.


Oliver Sturm
 
sloan said:
I think someone posted about this before.


Outside of collection type stuff, what are possible uses of a Generic.
(Again, I'm cool with the collection type stuff).
<snip>
Just some examples:
delegates or interfaces for comperison or conversion;
a typed version of the WeakReference (wich had to be provided by the
runtime.)
 
delegates or interfaces for comperison or conversion;
Gotcha.


a typed version of the WeakReference (wich had to be provided by the
runtime.)
Perfect.


Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top