I am looking to 'extending' an interface by providing set accessors to properties in that interface. The interface looks something like this:
interface IUser
{
string UserName
{
get;
}
}
I want something like this:
interface IMutableUser : IUser
{
string UserName
{
get;
set;
}
}
I need the inheritence. I cannot copy the body of IUser
into IMutableUser
and add the set accessors.
Is this possible in C#? If so, how can it be accomplished?