F
Flip
I'm looking at the O'Reilly Programming C# book and I have a question about
extending and combining interfaces syntax. It just looks a bit odd to me,
the two syntaxes look identical, but how does C# know which is extending and
which is combining?
interface IStorable{
void Read();
void Write(object o);
}
interface ICompressible{
void LogSavedBytes();
}
interface IStorableCompressible : IStoreable, ICompressible{
void LogOriginalSize();
}
This appears on the surface to be extending multiple interfaces? I thought
you couldn' do that in C#? Maybe I'm just confused, sorry. Help.
extending and combining interfaces syntax. It just looks a bit odd to me,
the two syntaxes look identical, but how does C# know which is extending and
which is combining?
interface IStorable{
void Read();
void Write(object o);
}
interface ICompressible{
void LogSavedBytes();
}
interface IStorableCompressible : IStoreable, ICompressible{
void LogOriginalSize();
}
This appears on the surface to be extending multiple interfaces? I thought
you couldn' do that in C#? Maybe I'm just confused, sorry. Help.