12 Replies
what does the error say?
Have you got the correct
at the top of the file where you want to use the extension method?
And also, I'd recommend you use
int
instead of Int32
and string
instead of String
Why intelasense doesn't pick this up ?
if someone accidentally makes a class called
String
or Int32
, it will mess up your code while nobody can redefine string
or int
intellisense should pick it up 🤔
if you use Ctrl
+ .
, it should give you the option to add the namespaceis the DateOfBirth property a non nullable Datetime ?
it's nullable
I think it's fixed
yes thanks you
I forgot to include the namespace
Is there a way to make this for non nullable datetime ?
this what happen when I remove the question mark
What
??
does is, if the first variable is null, it uses the second variable
but a DateTime
can never be null
so the ??
can not be usedfor many reason on the UI peopl just dont wanna set the datetime
how can I deal with those scenarios?
make the
this DateTime
-> this DateTime?
ok