Can't use exenstion medthod

Help
12 Replies
TheRanger
TheRanger2y ago
what does the error say?
Tvde1
Tvde12y ago
Have you got the correct
using Petaverse.Helpers;
using Petaverse.Helpers;
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
TotechsStrypper
Why intelasense doesn't pick this up ?
Tvde1
Tvde12y ago
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 namespace
TheRanger
TheRanger2y ago
is the DateOfBirth property a non nullable Datetime ?
Tvde1
Tvde12y ago
it's nullable I think it's fixed
TotechsStrypper
yes thanks you I forgot to include the namespace Is there a way to make this for non nullable datetime ?
TotechsStrypper
this what happen when I remove the question mark
Tvde1
Tvde12y ago
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 used
TotechsStrypper
for many reason on the UI peopl just dont wanna set the datetime how can I deal with those scenarios?
Susko3
Susko32y ago
make the this DateTime -> this DateTime?
TotechsStrypper
ok
Want results from more Discord servers?
Add your server
More Posts