Click here to Skip to main content
15,908,173 members
Home / Discussions / C#
   

C#

 
AnswerRe: Regularly checking up a folder Pin
Martin#12-Jun-07 19:31
Martin#12-Jun-07 19:31 
Questiondrag in a certin position in a text box Pin
merwa12-Jun-07 0:38
merwa12-Jun-07 0:38 
AnswerRe: drag in a certin position in a text box Pin
Martin#12-Jun-07 1:03
Martin#12-Jun-07 1:03 
AnswerRe: drag in a certin position in a text box Pin
Muammar©12-Jun-07 1:24
Muammar©12-Jun-07 1:24 
Questionenum question Pin
akkram12-Jun-07 0:31
akkram12-Jun-07 0:31 
AnswerRe: enum question Pin
Luc Pattyn12-Jun-07 0:37
sitebuilderLuc Pattyn12-Jun-07 0:37 
GeneralRe: enum question Pin
akkram12-Jun-07 0:43
akkram12-Jun-07 0:43 
GeneralRe: enum question Pin
DavidNohejl12-Jun-07 2:27
DavidNohejl12-Jun-07 2:27 
Or use static class, like

  class HouseType
  {
      HouseType(string){...}

      string desc;
      public string Description { get {return desc;}}
  }

  static class HouseTypes
  {
      static HouseTypes()
      {
        type1 = new HouseType("House of type1");
      }
      public HouseType Type1 { get {return type1}}
  }


...

if(myHouse.HouseType == HouseTypes.Type1)...


It should have better performance then using attributes but it consumes some extra memory.


"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

QuestionHow to record the video from web camera Pin
Exelioindia11-Jun-07 23:53
Exelioindia11-Jun-07 23:53 
AnswerRe: How to record the video from web camera Pin
Thomas Stockwell12-Jun-07 3:10
professionalThomas Stockwell12-Jun-07 3:10 
GeneralRe: How to record the video from web camera Pin
Exelioindia12-Jun-07 3:54
Exelioindia12-Jun-07 3:54 
QuestionHow can simulate button clicking in multiple threads environment? Pin
gzcjun11-Jun-07 23:39
gzcjun11-Jun-07 23:39 
QuestionClarification On Static Member [modified] Pin
Rahul8311-Jun-07 23:22
Rahul8311-Jun-07 23:22 
AnswerRe: Clarification On Static Member Pin
turbochimp12-Jun-07 11:05
turbochimp12-Jun-07 11:05 
QuestionMultiple Inheritances Pin
Neema Vikas11-Jun-07 23:20
Neema Vikas11-Jun-07 23:20 
AnswerRe: Multiple Inheritances Pin
Tarek Elganainy11-Jun-07 23:37
Tarek Elganainy11-Jun-07 23:37 
AnswerRe: Multiple Inheritances Pin
Kevin McFarlane12-Jun-07 1:07
Kevin McFarlane12-Jun-07 1:07 
Questionhow to lock a directory Pin
Hesham Yassin11-Jun-07 23:12
Hesham Yassin11-Jun-07 23:12 
AnswerRe: how to lock a directory Pin
Muammar©12-Jun-07 1:26
Muammar©12-Jun-07 1:26 
AnswerRe: how to lock a directory Pin
Sylvester george12-Jun-07 2:17
Sylvester george12-Jun-07 2:17 
AnswerRe: how to lock a directory Pin
shervin jijo12-Jun-07 2:21
shervin jijo12-Jun-07 2:21 
QuestionHow to get Remote Machine's hardware resources Pin
zinc_z11-Jun-07 23:03
zinc_z11-Jun-07 23:03 
AnswerRe: How to get Remote Machine's hardware resources Pin
Shy Agam12-Jun-07 2:19
Shy Agam12-Jun-07 2:19 
GeneralRe: How to get Remote Machine's hardware resources Pin
zinc_z12-Jun-07 2:28
zinc_z12-Jun-07 2:28 
GeneralRe: How to get Remote Machine's hardware resources Pin
Shy Agam12-Jun-07 2:57
Shy Agam12-Jun-07 2:57 

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.