C# C# Collections Arrays Multidimensional Arrays

Dean Vollebregt
Dean Vollebregt
24,580 Points

C# The type or namespace 'Cell' could not be found.

when trying to use Cell[,] to initialize a multidimensional array I get the error in the csharp repl: The type or namespace 'Cell' could not be found. I also get the same message when trying to compile code in Visual Studio. Is there an import or something needed?

2 Answers

Daniel Tkach
Daniel Tkach
7,607 Points

You have to first define that "Cell" class, it's not something defined in .net already. Enter in the repl what the Cell class should be, maybe something like: public class Cell { public string Data { get; set; } }

or anything else you want that cell to contain.

Kevin Gates
Kevin Gates
13,352 Points

Jeremy McLain : is this something you can update in the teacher's notes? Especially since this lesson starts a new workspace?

Kevin Gates
Kevin Gates
13,352 Points

Jeremy McLain : is this something you can update in the teacher's notes? Especially since this lesson starts a new workspace?