Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
I am attempting to assign an integer value to a 2d array, but I get a null reference error✅ - C#
C
C#
•
2y ago
•
49 replies
41phaNum3r1ca1
I am attempting to assign an integer value to a 2d array, but I get a null reference error✅
The specific error is
"NullReferenceException
: Object Reference Not Set To An Instance Of An Object
"
. Here is my code
:
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ Converting String to an integer with a Hexadecimal Value
C
C# / help
3y ago
✅ returning an integer in array form
C
C# / help
4y ago
✅ I am trying to output a 2D array to a datagridview, but it is not outputting correctly
C
C# / help
4y ago
A way to get an integer input quickly?
C
C# / help
4y ago