Click here to Skip to main content
14,271,364 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Elephant Security For Elephant Public Facing Elephant API Pin
Nagy Vilmos22-May-19 4:42
professionalNagy Vilmos22-May-19 4:42 
GeneralRe: Elephant Security For Elephant Public Facing Elephant API Pin
Urban Cricket21-May-19 8:18
memberUrban Cricket21-May-19 8:18 
GeneralRe: Elephant Security For Elephant Public Facing Elephant API Pin
Slacker00721-May-19 8:29
professionalSlacker00721-May-19 8:29 
GeneralRe: Elephant Security For Elephant Public Facing Elephant API Pin
Urban Cricket21-May-19 8:33
memberUrban Cricket21-May-19 8:33 
GeneralRe: Elephant Security For Elephant Public Facing Elephant API Pin
Slacker00721-May-19 8:38
professionalSlacker00721-May-19 8:38 
GeneralRe: Elephant Security For Elephant Public Facing Elephant API Pin
Urban Cricket21-May-19 8:23
memberUrban Cricket21-May-19 8:23 
GeneralRe: Elephant Security For Elephant Public Facing Elephant API Pin
raddevus21-May-19 9:48
mvaraddevus21-May-19 9:48 
GeneralRe: Elephant Security For Elephant Public Facing Elephant API Pin
BillWoodruff21-May-19 22:10
mveBillWoodruff21-May-19 22:10 
Another Lounge thread that should be a discussion on the C# language forum, where its value might have a chance to benefit others in the future.

Please, go ahead and report me for posting code with a positive intent to make CP better; I'll wear the scars as a badge of honor WTF | :WTF:

A catch without a throw is a homeless kitten Dead | X|
public static class TheMotherOfAllExceptionHandlers
{
    public static string ThrowToMama(this Exception ex, bool doLog = true,
        [CallerMemberName] string propertyName = null)
    {
        StringBuilder sb = new StringBuilder();

        //  whip, blend, puree ... to taste

        string log = sb.ToString();

        if (doLog)
        {
            Logger(log);
        }

        return log;
    }

    public static void Logger(string data)
    {
        //
    }
}
For an in-depth exposition by Michaelis on some advanced Exception handling techniques in C# >= 5: [^]
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

GeneralThought of the Day Pin
OriginalGriff21-May-19 4:59
protectorOriginalGriff21-May-19 4:59 
GeneralRe: Thought of the Day Pin
W Balboos21-May-19 5:03
mveW Balboos21-May-19 5:03 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer21-May-19 7:09
professionalDaniel Pfeffer21-May-19 7:09 
GeneralRe: Thought of the Day Pin
Ravi Bhavnani21-May-19 8:07
professionalRavi Bhavnani21-May-19 8:07 
GeneralRe: Thought of the Day Pin
OriginalGriff21-May-19 8:17
protectorOriginalGriff21-May-19 8:17 
RantMorons PinPopular
Marc Clifton21-May-19 3:08
protectorMarc Clifton21-May-19 3:08 
GeneralRe: Morons Pin
#realJSOP21-May-19 3:14
mve#realJSOP21-May-19 3:14 
AnswerRe: Morons PinPopular
lopatir21-May-19 3:29
memberlopatir21-May-19 3:29 
GeneralRe: Morons Pin
MarkTJohnson21-May-19 3:33
professionalMarkTJohnson21-May-19 3:33 
GeneralRe: Morons PinPopular
megaadam21-May-19 3:59
professionalmegaadam21-May-19 3:59 
Generalconsider making this a Tip/Trick ? Pin
BillWoodruff21-May-19 17:43
mveBillWoodruff21-May-19 17:43 
GeneralRe: Morons Pin
KarstenK21-May-19 4:35
mveKarstenK21-May-19 4:35 
GeneralRe: Morons Pin
BillWoodruff22-May-19 22:49
mveBillWoodruff22-May-19 22:49 
GeneralRe: Morons Pin
KarstenK23-May-19 0:05
mveKarstenK23-May-19 0:05 
GeneralRe: Morons Pin
CodeWraith21-May-19 4:46
memberCodeWraith21-May-19 4:46 
GeneralRe: Morons Pin
Richard Deeming21-May-19 5:27
mveRichard Deeming21-May-19 5:27 
GeneralRe: Morons Pin
Nagy Vilmos21-May-19 5:29
professionalNagy Vilmos21-May-19 5:29 

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.