V
Victor
When building a C# project in VS (compacted code included here), I get the
following error message.
What does it mean, and what should I do to overcome the problem?
Error Messge:
C:\USR\Dev\C#\DateInheritance.cs(15): The type or namespace name 'Date'
could not be found (are you missing a using directive or an assembly
reference?)
Thanks,
Victor
=================================
using System ;
class DateInheritance
{
public static void Main()
{ ...}
}
class DatePlus : Date <---------- Problematic line
{ public DatePlus() {}
public DatePlus(int year, int month, int day): base(year, month, day) {}
public int DaysSince1600
{ ... } // properties
public override string ToString()
{ ... }
public static int operator -(DatePlus date1, DatePlus date2)
{ ... }
}
following error message.
What does it mean, and what should I do to overcome the problem?
Error Messge:
C:\USR\Dev\C#\DateInheritance.cs(15): The type or namespace name 'Date'
could not be found (are you missing a using directive or an assembly
reference?)
Thanks,
Victor
=================================
using System ;
class DateInheritance
{
public static void Main()
{ ...}
}
class DatePlus : Date <---------- Problematic line
{ public DatePlus() {}
public DatePlus(int year, int month, int day): base(year, month, day) {}
public int DaysSince1600
{ ... } // properties
public override string ToString()
{ ... }
public static int operator -(DatePlus date1, DatePlus date2)
{ ... }
}