S
Steven Quail
Hi to all,
I am trying to get the hang of using interfaces and for some reason I
am getting
the "inconsistent accessibility where property ... is less accessible
than property ...(cs0052)".
What I have is the following:
(sorry if the syntax is incorrec)
IAddress =
{
string Number;
string Street;
}
IAddressList =
{
IAddress CurrentAddress {get;}
void FirstAddress();
void NextAddress();
bool HasAddress();
}
When I implement IAddressList in a class, I get the accessibility
error.
Note that when I change IAddress CurrentAddress {get;} for
Object CurrentAddress{get;} I do not get the error.
The class that implements IAddressList only implements this interface.
i.e.
public class AddressList : IAddressList {...}
Any help would be greatly appreciated.
Steven.
I am trying to get the hang of using interfaces and for some reason I
am getting
the "inconsistent accessibility where property ... is less accessible
than property ...(cs0052)".
What I have is the following:
(sorry if the syntax is incorrec)
IAddress =
{
string Number;
string Street;
}
IAddressList =
{
IAddress CurrentAddress {get;}
void FirstAddress();
void NextAddress();
bool HasAddress();
}
When I implement IAddressList in a class, I get the accessibility
error.
Note that when I change IAddress CurrentAddress {get;} for
Object CurrentAddress{get;} I do not get the error.
The class that implements IAddressList only implements this interface.
i.e.
public class AddressList : IAddressList {...}
Any help would be greatly appreciated.
Steven.