Click here to Skip to main content
15,902,869 members
Home / Discussions / C#
   

C#

 
QuestionUserControl Pin
fjlv200527-Feb-07 16:44
fjlv200527-Feb-07 16:44 
QuestionConverting strings to other data types Pin
Leo Smith27-Feb-07 14:10
Leo Smith27-Feb-07 14:10 
AnswerRe: Converting strings to other data types Pin
Christian Graus27-Feb-07 15:13
protectorChristian Graus27-Feb-07 15:13 
GeneralRe: Converting strings to other data types Pin
Leo Smith27-Feb-07 15:41
Leo Smith27-Feb-07 15:41 
QuestionWindows Status Bar / System Tray Pin
Rabbit1727-Feb-07 13:55
Rabbit1727-Feb-07 13:55 
QuestionWindows Service and Directory.Exists() Pin
Christopher Stratmann27-Feb-07 13:54
Christopher Stratmann27-Feb-07 13:54 
AnswerRe: Windows Service and Directory.Exists() Pin
Vasudevan Deepak Kumar27-Feb-07 17:32
Vasudevan Deepak Kumar27-Feb-07 17:32 
GeneralRe: Windows Service and Directory.Exists() Pin
Christopher Stratmann28-Feb-07 0:47
Christopher Stratmann28-Feb-07 0:47 
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 

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.