Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: enumerator woes Pin
mike montagne27-Feb-07 14:04
mike montagne27-Feb-07 14:04 
GeneralRe: enumerator woes Pin
Glen Harvy27-Feb-07 14:22
Glen Harvy27-Feb-07 14:22 
GeneralRe: enumerator woes Pin
mike montagne27-Feb-07 14:29
mike montagne27-Feb-07 14:29 
GeneralRe: enumerator woes Pin
Glen Harvy27-Feb-07 15:16
Glen Harvy27-Feb-07 15:16 
QuestionSimple Open File With... Question Pin
cmarcus27-Feb-07 13:14
cmarcus27-Feb-07 13:14 
AnswerRe: Simple Open File With... Question Pin
Vasudevan Deepak Kumar27-Feb-07 17:33
Vasudevan Deepak Kumar27-Feb-07 17:33 
AnswerRe: Simple Open File With... Question Pin
blackjack215027-Feb-07 23:13
blackjack215027-Feb-07 23:13 
QuestionC# Question with Generics Pin
malharone27-Feb-07 10:56
malharone27-Feb-07 10:56 
I posted a question earlier re. genarics for .net 2.0 and seems that what I'm trying to do is unfeasible.

So here's my last (I think it's last) question on generics:

Is it possible to reference "current class" instead of hard-coding the class name in the code?

E.g.
abstract class BaseClass
{
  static void GenericStaticMethod < T > (args)
  {
    ...
  }
  void Foo()
  {
    GenericStaticMethod <CurrentClass>.(args);
  }
}

class C1 : BaseClass
{
  ...
}
class C2 : BaseClass
{
   ...
}


when calling C1.Foo(), it should in turn call GenericStaticMethod < C1 > (...) or calling C2.Foo(), it should in turn call GenericStaticMethod < C2 > (...) ?

- Malhar
AnswerRe: C# Question with Generics Pin
Ssswamii27-Feb-07 12:58
Ssswamii27-Feb-07 12:58 
GeneralRe: C# Question with Generics Pin
malharone27-Feb-07 13:02
malharone27-Feb-07 13:02 
AnswerRe: C# Question with Generics Pin
Mattias Olgerfelt27-Feb-07 13:42
Mattias Olgerfelt27-Feb-07 13:42 
GeneralRe: C# Question with Generics Pin
malharone27-Feb-07 13:50
malharone27-Feb-07 13:50 
QuestionAnybody know this ? Pin
Glen Liu27-Feb-07 10:50
Glen Liu27-Feb-07 10:50 
AnswerRe: Anybody know this ? Pin
mike montagne27-Feb-07 14:19
mike montagne27-Feb-07 14:19 
GeneralRe: Anybody know this ? Pin
Glen Liu28-Feb-07 5:21
Glen Liu28-Feb-07 5:21 
Questionmp3 stream Pin
neurobion27-Feb-07 10:05
neurobion27-Feb-07 10:05 
AnswerRe: mp3 stream Pin
Niiiissssshhhhhuuuuu27-Feb-07 17:04
Niiiissssshhhhhuuuuu27-Feb-07 17:04 
GeneralRe: mp3 stream Pin
neurobion27-Feb-07 22:11
neurobion27-Feb-07 22:11 
QuestionAccess IE's document's parentWindow Pin
yjoo931727-Feb-07 9:18
yjoo931727-Feb-07 9:18 
AnswerRe: Access IE's document's parentWindow Pin
Mark T.27-Feb-07 11:49
Mark T.27-Feb-07 11:49 
QuestionHow do I route events to a container class instead of main form? Pin
DPRoberts27-Feb-07 8:59
DPRoberts27-Feb-07 8:59 
AnswerRe: How do I route events to a container class instead of main form? Pin
Ennis Ray Lynch, Jr.27-Feb-07 9:47
Ennis Ray Lynch, Jr.27-Feb-07 9:47 
AnswerRe: How do I route events to a container class instead of main form? Pin
mike montagne27-Feb-07 10:13
mike montagne27-Feb-07 10:13 
GeneralRe: How do I route events to a container class instead of main form? Pin
DPRoberts27-Feb-07 10:51
DPRoberts27-Feb-07 10:51 
GeneralRe: How do I route events to a container class instead of main form? Pin
mike montagne27-Feb-07 13:29
mike montagne27-Feb-07 13:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.