Click here to Skip to main content
15,886,835 members
Home / Discussions / C#
   

C#

 
Questionusage of pdfbox in c#?? Pin
Misbah522-May-12 2:58
Misbah522-May-12 2:58 
AnswerRe: usage of pdfbox in c#?? Pin
Manfred Rudolf Bihy22-May-12 3:01
professionalManfred Rudolf Bihy22-May-12 3:01 
QuestionCatch all but a specific exception Pin
Bernhard Hiller22-May-12 0:01
Bernhard Hiller22-May-12 0:01 
AnswerRe: Catch all but a specific exception Pin
BobJanova22-May-12 0:08
BobJanova22-May-12 0:08 
GeneralRe: Catch all but a specific exception Pin
Bernhard Hiller22-May-12 2:58
Bernhard Hiller22-May-12 2:58 
GeneralRe: Catch all but a specific exception Pin
Ravi Bhavnani22-May-12 10:56
professionalRavi Bhavnani22-May-12 10:56 
AnswerRe: Catch all but a specific exception Pin
Rob Philpott22-May-12 2:05
Rob Philpott22-May-12 2:05 
GeneralRe: Catch all but a specific exception Pin
Bernhard Hiller22-May-12 2:56
Bernhard Hiller22-May-12 2:56 
Because of other code to be executed or not. Something like this:
C#
public ReturnType APublicFunction(some params)
{
    try
    {
        //some code here
        SomeType someValue = aPrivateFunction(other params);
        //some more code here
    }
    catch(Exception ex)
    {
        //do something useful with the exceptions which are caught here
    }
}

private SomeType aPrivateFunction(other params)
{
    //some code here
    SomeFunction();
    //some more code here
}

In case of the UserTriedToCheatException, it has to be handled in APublicFunction, and no more other code needs to be executed, while in other cases, the exceptions are not such important, the rest of the functions can still be executed (sufficient fallback functionality provided).
SuggestionRe: Catch all but a specific exception Pin
Eddy Vluggen22-May-12 8:59
professionalEddy Vluggen22-May-12 8:59 
GeneralRe: Catch all but a specific exception Pin
Satish3223-May-12 0:08
Satish3223-May-12 0:08 
AnswerRe: Catch all but a specific exception Pin
Richard Andrew x6422-May-12 5:19
professionalRichard Andrew x6422-May-12 5:19 
SuggestionRe: Catch all but a specific exception Pin
Cracked-Down23-May-12 2:01
Cracked-Down23-May-12 2:01 
GeneralRe: Catch all but a specific exception Pin
Bernhard Hiller23-May-12 4:29
Bernhard Hiller23-May-12 4:29 
AnswerRe: Catch all but a specific exception Pin
Cracked-Down23-May-12 4:49
Cracked-Down23-May-12 4:49 
GeneralRe: Catch all but a specific exception Pin
Cracked-Down27-May-12 21:00
Cracked-Down27-May-12 21:00 
Questionblocking USB ports Pin
Pritam Dalvi21-May-12 21:58
Pritam Dalvi21-May-12 21:58 
AnswerRe: blocking USB ports Pin
Richard MacCutchan21-May-12 22:58
mveRichard MacCutchan21-May-12 22:58 
QuestionDelegate Conversion to Method? [Solved] Pin
Ravi Sant21-May-12 21:06
Ravi Sant21-May-12 21:06 
AnswerRe: Delegate Conversion to Method? Pin
Keith Barrow21-May-12 21:59
professionalKeith Barrow21-May-12 21:59 
GeneralRe: Delegate Conversion to Method? Pin
Ravi Sant21-May-12 23:57
Ravi Sant21-May-12 23:57 
GeneralRe: Delegate Conversion to Method? Pin
Keith Barrow22-May-12 1:38
professionalKeith Barrow22-May-12 1:38 
AnswerRe: Delegate Conversion to Method? Pin
BobJanova22-May-12 0:06
BobJanova22-May-12 0:06 
QuestionBarcode in crystal Report in C# Pin
Member 360103421-May-12 21:04
Member 360103421-May-12 21:04 
AnswerRe: Barcode in crystal Report in C# Pin
Richard MacCutchan21-May-12 22:57
mveRichard MacCutchan21-May-12 22:57 
QuestionWhy no compiler warning in this code? Pin
Tom Clement21-May-12 9:40
professionalTom Clement21-May-12 9:40 

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.