Click here to Skip to main content
15,070,511 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: Quick C# quiz Pin
PIEBALDconsult30-Nov-19 11:01
professionalPIEBALDconsult30-Nov-19 11:01 
GeneralRe: Quick C# quiz Pin
Stuart Dootson1-Dec-19 23:22
professionalStuart Dootson1-Dec-19 23:22 
GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 3:16
mvahoney the codewitch2-Dec-19 3:16 
GeneralRe: Quick C# quiz Pin
JohaViss611-Dec-19 22:08
professionalJohaViss611-Dec-19 22:08 
GeneralRe: Quick C# quiz Pin
Stuart Dootson1-Dec-19 23:16
professionalStuart Dootson1-Dec-19 23:16 
GeneralRe: Quick C# quiz Pin
Gerry Schmitz2-Dec-19 5:31
mveGerry Schmitz2-Dec-19 5:31 
GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 5:33
mvahoney the codewitch2-Dec-19 5:33 
GeneralRe: Quick C# quiz Pin
zezba90002-Dec-19 8:35
Memberzezba90002-Dec-19 8:35 
"I know C family languages require type information to parse (which is unfortunate) but C# takes it to another level. in for a penny, in for a pound I guess."

Static typing allows you to avoid runtime errors, its loads faster and much easier to find what is part of what. Sounds like you're coming from javaScript which teaches you how to think about things very wrong.

A delegate in C# is a multicast-delegate in that when it invokes, its actually invoking a generated method that invokes the first function pointer, then the next and so on. It will always use virtual dispatch and can't be inlined. Don't use delegates for everything and only use them for what they're actually meant for.

modified 2-Dec-19 15:18pm.

GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 13:16
mvahoney the codewitch2-Dec-19 13:16 
GeneralRe: Quick C# quiz Pin
zezba90002-Dec-19 14:05
Memberzezba90002-Dec-19 14:05 
GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 14:12
mvahoney the codewitch2-Dec-19 14:12 
GeneralRe: Quick C# quiz Pin
zezba90002-Dec-19 14:42
Memberzezba90002-Dec-19 14:42 
GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 14:46
mvahoney the codewitch2-Dec-19 14:46 
GeneralRe: Quick C# quiz Pin
Member 140926054-Dec-19 21:33
MemberMember 140926054-Dec-19 21:33 
GeneralRe: Quick C# quiz Pin
honey the codewitch4-Dec-19 21:37
mvahoney the codewitch4-Dec-19 21:37 
GeneralHomo Hackabilis ? Pin
BillWoodruff29-Nov-19 3:37
mveBillWoodruff29-Nov-19 3:37 
AnswerRe: Homo Hackabilis ? Pin
lopatir29-Nov-19 3:54
Memberlopatir29-Nov-19 3:54 
GeneralRe: Homo Hackabilis ? Pin
Maximilien29-Nov-19 4:00
MemberMaximilien29-Nov-19 4:00 
GeneralRe: Homo Hackabilis ? Pin
CodeWraith29-Nov-19 4:10
MemberCodeWraith29-Nov-19 4:10 
GeneralRe: Homo Hackabilis ? Pin
Maximilien29-Nov-19 4:22
MemberMaximilien29-Nov-19 4:22 
GeneralRe: Homo Hackabilis ? Pin
Eddy Vluggen29-Nov-19 7:19
professionalEddy Vluggen29-Nov-19 7:19 
GeneralRe: Homo Hackabilis ? Pin
BillWoodruff29-Nov-19 19:28
mveBillWoodruff29-Nov-19 19:28 
GeneralAaahhh, Friday afternoon! Pin
glennPattonContracting229-Nov-19 3:31
professionalglennPattonContracting229-Nov-19 3:31 
GeneralRe: Aaahhh, Friday afternoon! Pin
lopatir29-Nov-19 3:46
Memberlopatir29-Nov-19 3:46 
GeneralRe: Aaahhh, Friday afternoon! Pin
RickZeeland29-Nov-19 3:58
mveRickZeeland29-Nov-19 3:58 

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.