Gramore
Gramore
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
Always 🙂
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
you can still activator it right?
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
I mean probably fine and correct, but does limit you for some stuff
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
Oh but it also kills the new() constraint that's a little restrictive
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
I thought you were talking about the attr 😂
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
Oh i understand you, you mean it's preferable to use the reuqired keyword
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
Oh C#11, dang i'm fallin behind
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
We have a required keyword??
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
Makes sense i guess, i didn't think the component model stuff interacted with the nullability stuff but it's nice that it does
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
Does required also shut it up? I thought it was more for binding shenanigans?
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
As for best practice i am not sure, but if you have nullable enabled on the project and you want to indicate the string should not be null then i'd imagine it is correct but YMMV on what people do out in the wild ~
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
If you are familiar with nullable value types int? for example it indicates that the int can be null. string is a reference type and it is therefore possible that the value could be null (no reference). You could think of it as every string is a string?
33 replies
CC#
Created by SWEETPONY on 2/8/2024 in #help
✅ What is reason of null! here?
strings are nullable by default. Within a nullable context = null! indicates that the string value should be initialized
33 replies
CC#
Created by Gramore on 2/5/2024 in #help
Rider Info Diagnostic Action Location
OOO ic ic, neat
16 replies
CC#
Created by Gramore on 2/5/2024 in #help
Rider Info Diagnostic Action Location
Thanks anyhow 🙂
16 replies
CC#
Created by Gramore on 2/5/2024 in #help
Rider Info Diagnostic Action Location
as god intented
16 replies
CC#
Created by Gramore on 2/5/2024 in #help
Rider Info Diagnostic Action Location
cause mine just yeets stuff
16 replies
CC#
Created by Gramore on 2/5/2024 in #help
Rider Info Diagnostic Action Location
<- == backspace?
16 replies
CC#
Created by Gramore on 2/5/2024 in #help
Rider Info Diagnostic Action Location
Tbh i don't have that keybind
16 replies