Re: How to use generics?
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Wed, 9 May 2007 00:07:55 +0100
Martin <martingagne@xxxxxxxxx> wrote:
In the following example, I'd like to replace int by a generic. In
order word, I would like to replace int by float, double, byte or
something like that. I've tried to find a common interface or
something like that, but I didn't find.
There isn't one, I'm afraid. This is the kind of thing that generics
just don't work for in their current form :(
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: How to use generics?
- From: Mark Rae
- Re: How to use generics?
- References:
- How to use generics?
- From: Martin
- How to use generics?
- Prev by Date: Re: self-confidence of compiler
- Next by Date: Re: How to use generics?
- Previous by thread: How to use generics?
- Next by thread: Re: How to use generics?
- Index(es):
Relevant Pages
|
Loading