© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
7 replies
daveeska

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
unknown.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ How do I check for an array key in Dictionary?
C#CC# / help
3y ago
How can I check if an index of a 2d array is out of bounds?
C#CC# / help
14mo ago
✅ Finding all possibilities of N length in an array
C#CC# / help
9mo ago
❔ How can i clear the text of an array of labels
C#CC# / help
4y ago