My program uses a class called Time2
. I have the reference added to TimeTest
but I keep getting the error, 'Time2' is a 'namespace' but is used like a 'type'
.
Could someone please tell me what this error is and how to fix it?
namespace TimeTest
{
class TimeTest
{
static void Main(string[] args)
{
Time2 t1 = new Time2();
}
}
}
Time2
to this question, since that's probably where the problem lie. Most likely you've gotTime2
defined in a namespace calledTime2
– Bookbinder