mp
2016-12-17 20:07:20 UTC
dont understand this
I can't specify public or private in an interface
so I don't understand why i get this error:
interface IBuilding
{...
List<IBuildingComponent > Components { get; set; }
}
public class Building : IBuilding
{...
public List<IBuildingComponent> Components { get; set; }
//Inconsistent accessibility:prop type 'List<IBuildingComponent>' is
less accessible than property 'Building.Components'
}
if i try adding public to the interface i get 'modifier not valid'
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
I can't specify public or private in an interface
so I don't understand why i get this error:
interface IBuilding
{...
List<IBuildingComponent > Components { get; set; }
}
public class Building : IBuilding
{...
public List<IBuildingComponent> Components { get; set; }
//Inconsistent accessibility:prop type 'List<IBuildingComponent>' is
less accessible than property 'Building.Components'
}
if i try adding public to the interface i get 'modifier not valid'
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus