Re: Is it possible to call a static method in the type class of a generic class?
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Thu, 8 Dec 2005 01:56:38 -0000
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
.
- Follow-Ups:
- References:
- Prev by Date: Re: Bug in ManagementScope.Connect?
- Next by Date: Re: Web Browser Sample
- Previous by thread: Is it possible to call a static method in the type class of a generic class?
- Next by thread: Re: Is it possible to call a static method in the type class of a generic class?
- Index(es):
Relevant Pages
|