Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 16 dni temufuck_around/find_outsh.itjust.worksexternal-linkmessage-square109fedilinkarrow-up1976arrow-down145
arrow-up1931arrow-down1external-linkfuck_around/find_outsh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 16 dni temumessage-square109fedilink
minus-squareWhelks_chance@lemmy.worldlinkfedilinkarrow-up3·16 dni temuWhy does the bool have brackets? I haven’t really used c#, seems odd
minus-squarertxn@lemmy.worldlinkfedilinkarrow-up12·edit-216 dni temuIt’s a method definition. C#'s standard formatting puts the left bracket brace of the method body on a new line. It’s equivalent to: private bool IsSus(){ ... }
minus-squareWhelks_chance@lemmy.worldlinkfedilinkarrow-up3·16 dni temuAhhh, that makes way more sense. Thanks
Why does the bool have brackets? I haven’t really used c#, seems odd
It’s a method definition. C#'s standard formatting puts the left
bracketbrace of the method body on a new line. It’s equivalent to:private bool IsSus(){ ... }
Ahhh, that makes way more sense. Thanks