Re: Generics Question
- From: "Scott M." <smar@xxxxxxxxxxxxx>
- Date: Fri, 23 Nov 2007 14:28:25 -0500
I don't know Jon, that's why I asked the question.
"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.21b136d1df3e7170641@xxxxxxxxxxxxxxxxxxxxxxx
Scott M. <smar@xxxxxxxxxxxxx> wrote:
Why not? If I use a paremeterized constructor that asks for a type that
is
an interface, wouldn't that work?
How would you build an equivalent of List<T> using interfaces, such
that you get the same kind of compile-time type safety?
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
.
- Follow-Ups:
- Re: Generics Question
- From: Jon Skeet [C# MVP]
- Re: Generics Question
- References:
- Generics Question
- From: Scott M.
- Re: Generics Question
- From: Mattias Sjögren
- Re: Generics Question
- From: Scott M.
- Re: Generics Question
- From: Jon Skeet [C# MVP]
- Generics Question
- Prev by Date: Re: Is it possbile to enumerate Methods by Event?
- Next by Date: Re: Generics Question
- Previous by thread: Re: Generics Question
- Next by thread: Re: Generics Question
- Index(es):
Relevant Pages
|
Loading