Click here to Skip to main content
15,905,971 members
Home / Discussions / C#
   

C#

 
AnswerRe: software copy protection Pin
Cracked-Down23-May-12 1:52
Cracked-Down23-May-12 1:52 
GeneralRe: software copy protection Pin
Kevin Marois23-May-12 7:24
professionalKevin Marois23-May-12 7:24 
GeneralRe: software copy protection Pin
Cracked-Down23-May-12 9:43
Cracked-Down23-May-12 9:43 
AnswerRe: software copy protection Pin
Kevin Marois23-May-12 7:26
professionalKevin Marois23-May-12 7:26 
AnswerRe: software copy protection Pin
Cracked-Down23-May-12 10:00
Cracked-Down23-May-12 10:00 
GeneralRe: software copy protection Pin
harold aptroot23-May-12 10:05
harold aptroot23-May-12 10:05 
AnswerRe: software copy protection Pin
MrJohnLucas2-Jul-12 16:53
MrJohnLucas2-Jul-12 16:53 
QuestionGenerating label Barcode from inside of our project Pin
Fred 3422-May-12 9:09
Fred 3422-May-12 9:09 
AnswerRe: Generating label Barcode from inside of our project Pin
Eddy Vluggen22-May-12 9:38
professionalEddy Vluggen22-May-12 9:38 
GeneralRe: Generating label Barcode from inside of our project Pin
Fred 3422-May-12 9:56
Fred 3422-May-12 9:56 
GeneralRe: Generating label Barcode from inside of our project Pin
Eddy Vluggen22-May-12 10:14
professionalEddy Vluggen22-May-12 10:14 
AnswerRe: Generating label Barcode from inside of our project Pin
fjdiewornncalwe22-May-12 9:39
professionalfjdiewornncalwe22-May-12 9:39 
GeneralRe: Generating label Barcode from inside of our project Pin
Fred 3422-May-12 10:13
Fred 3422-May-12 10:13 
AnswerRe: Generating label Barcode from inside of our project Pin
Alan Balkany24-May-12 4:34
Alan Balkany24-May-12 4:34 
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 

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.