Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 day agofuck_around/find_outsh.itjust.worksimagemessage-square108fedilinkarrow-up1935arrow-down144
arrow-up1891arrow-down1imagefuck_around/find_outsh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 day agomessage-square108fedilink
minus-squareWhelks_chance@lemmy.worldlinkfedilinkarrow-up3·1 day agoWhy does the bool have brackets? I haven’t really used c#, seems odd
minus-squarertxn@lemmy.worldlinkfedilinkarrow-up11·edit-21 day agoIt’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·1 day agoAhhh, 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