I receive a null issue when debugging a c# array.
Visual studio debugging show it has a null something.
There is a class storage.
public class db
{
public string uid;
}
It was created this way:
db[,,] tmpdb = new db[16, 16, 16];
When I try to use it:
db[x,y,z].uid = "anID";
What I get is: System.NullReferenceException: 'Object reference not set to an instance of an object.'
When I try:
string[,,] sdb = new string[16,16,16];
It actually work fine!
EDIT: what's the different and why is the first a null and this not a null? By logic, they are created the same way?
Does it not work the same? Should I use this instead?
List<List<List<db>>>