Click here to Skip to main content
15,893,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: aligning hexadecimal output Pin
Rüpel5-Sep-02 3:25
Rüpel5-Sep-02 3:25 
GeneralRe: aligning hexadecimal output Pin
Stephane Rodriguez.5-Sep-02 7:04
Stephane Rodriguez.5-Sep-02 7:04 
GeneralApplication.Exit isn't working Pin
jparsons5-Sep-02 3:04
jparsons5-Sep-02 3:04 
GeneralRe: Application.Exit isn't working Pin
Russell Morris5-Sep-02 9:46
Russell Morris5-Sep-02 9:46 
GeneralRe: Application.Exit isn't working Pin
jparsons5-Sep-02 12:17
jparsons5-Sep-02 12:17 
GeneralVC 6 code won't compile in .Net Pin
Ryan Cromwell5-Sep-02 2:56
Ryan Cromwell5-Sep-02 2:56 
GeneralRe: VC 6 code won't compile in .Net Pin
Stephane Rodriguez.5-Sep-02 3:08
Stephane Rodriguez.5-Sep-02 3:08 
Generalcalling base-constructor Pin
Rüpel5-Sep-02 2:53
Rüpel5-Sep-02 2:53 
hi,

i'm designing an exception for my program and have the following problem. i want an additional constructor, which gets an int as paramter, builds a string out of it and calls the base-classes constructor with a string.

something like
class MyException : ApplicationExcpetion
{
  ...
  public MyException(int errorCode)
  {
    string message;
    switch(errorCode)
    {
      case // blabla, setting message here correctly
      default: message="unkown errorcode"; break;
    }
    base(message);
  }
}

but C# tells me: "Use of keyword base is not valid in this context" Frown | :(

i'm stuck. anyone any idea?

thx!

:wq
GeneralRe: calling base-constructor Pin
jparsons5-Sep-02 3:06
jparsons5-Sep-02 3:06 
GeneralRe: calling base-constructor Pin
Rüpel5-Sep-02 3:15
Rüpel5-Sep-02 3:15 
GeneralRe: calling base-constructor Pin
leppie5-Sep-02 3:41
leppie5-Sep-02 3:41 
GeneralRe: calling base-constructor Pin
jparsons5-Sep-02 12:19
jparsons5-Sep-02 12:19 
GeneralDrag and Drop into a node of a treeview Pin
Bill Dean4-Sep-02 11:36
Bill Dean4-Sep-02 11:36 
GeneralRe: Drag and Drop into a node of a treeview Pin
Ryan Cromwell5-Sep-02 2:49
Ryan Cromwell5-Sep-02 2:49 
GeneralRe: Drag and Drop into a node of a treeview Pin
Bill Dean5-Sep-02 4:19
Bill Dean5-Sep-02 4:19 
GeneralParameters question Pin
leppie4-Sep-02 10:29
leppie4-Sep-02 10:29 
GeneralRe: Parameters question Pin
jparsons5-Sep-02 2:59
jparsons5-Sep-02 2:59 
GeneralRe: Parameters question Pin
leppie5-Sep-02 3:13
leppie5-Sep-02 3:13 
QuestionReplace with a C# Regex? Pin
Zombies with Coffee, LLC4-Sep-02 9:25
professionalZombies with Coffee, LLC4-Sep-02 9:25 
AnswerRe: Replace with a C# Regex? Pin
Eric Gunnerson (msft)4-Sep-02 10:17
Eric Gunnerson (msft)4-Sep-02 10:17 
GeneralClickety Pin
David Stone4-Sep-02 12:20
sitebuilderDavid Stone4-Sep-02 12:20 
GeneralUnsafe Question Pin
Nick Parker4-Sep-02 9:24
protectorNick Parker4-Sep-02 9:24 
GeneralRe: Unsafe Question Pin
leppie4-Sep-02 9:39
leppie4-Sep-02 9:39 
GeneralRe: Unsafe Question Pin
Nick Parker4-Sep-02 9:43
protectorNick Parker4-Sep-02 9:43 
GeneralOptional parameters Pin
Nnamdi Onyeyiri4-Sep-02 8:21
Nnamdi Onyeyiri4-Sep-02 8:21 

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.