C#
C#

help

Root Question Message

minjub
minjub10/23/2022
How do I check the length of an array when that array is null?

How do I check the length of an array when that array is null?
I've tried make it nullable by putting ? after int[] but it still doesn't work
minjub
minjub10/23/2022
here's where tileMap initialize:
thinker227
thinker22710/23/2022
Well, it's not null, it's just not initialized
thinker227
thinker22710/23/2022
You need to initialize the array with a value
minjub
minjub10/23/2022
like that?
thinker227
thinker22710/23/2022
sure
thinker227
thinker22710/23/2022
Although now it's empty, but that may be what you want
minjub
minjub10/23/2022
k
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy