Sjmarf@sh.itjust.workscake to Programmer Humor@programming.dev · 5 months agofuck_around/find_outsh.itjust.worksexternal-linkmessage-square108fedilinkarrow-up1991arrow-down146
arrow-up1945arrow-down1external-linkfuck_around/find_outsh.itjust.worksSjmarf@sh.itjust.workscake to Programmer Humor@programming.dev · 5 months agomessage-square108fedilink
minus-squareWhelks_chance@lemmy.worldlinkfedilinkarrow-up3·5 months agoWhy does the bool have brackets? I haven’t really used c#, seems odd
minus-squarertxn@lemmy.worldlinkfedilinkarrow-up12·edit-25 months 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·5 months 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