favore qualcuno può aiutare con il seguente errore:incoerente l'accessibilità: Tipo di proprietà è meno accessibile
Inconsistent accessibility: property type 'Test.Delivery' is less accessible than property 'Test.Form1.thelivery'
private Delivery thedelivery;
public Delivery thedelivery
{
get { return thedelivery; }
set { thedelivery = value; }
}
Io non sono in grado di eseguire il programma a causa del messaggio di errore di incoerenza.
Ecco la mia classe di consegna:
namespace Test
{
class Delivery
{
private string name;
private string address;
private DateTime arrivalTime;
public string Name
{
get { return name; }
set { name = value; }
}
public string Address
{
get { return address; }
set { address = value; }
}
public DateTime ArrivlaTime
{
get { return arrivalTime; }
set { arrivalTime = value; }
}
public string ToString()
{
{ return name + address + arrivalTime.ToString(); }
}
}
}
0down voteaccept dispiace può dirmi come fare il mio classe per l'accesso del pubblico modificatore di –
@DavidBukera: aggiornato , controlla il numero –
@DavidBukera: penso che ce l'abbia fatta –