C#
C#

help

Root Question Message

barcode
barcode10/11/2022
Does new {} create a new object that needs to be garbage collected? [Answered]

        catch(Exception ex)
        {
            return StatusCode(500, new { Message= ex.Message} );
        }


In this code, does new create a new object or is it optimized in some way to not be garbage collected?
barcode
barcode10/12/2022
thanks
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy