Re: Is it possible to call a static method in the type class of a generic class?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



steve bull <bullsj@xxxxxxxxxxx> wrote:
> I have a class SwatchPanel which takes Swatch as a parameter type.
> How can I call a static function within the Swatch class?

Why not just call Swatch.Exists, i.e. don't use the generic argument at
all? You won't be able to use an "overridden" version of Swatch.Foo,
but then you can't override static methods anyway.

--
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
.



Relevant Pages