This was recently discovered locally, that it is allowed (without a warning)
to create class like this:
public abstract class AbstractBase
{
internal abstract void foo();
}
First, I thought it's a sort of bug. But after some thinking about the
fact... This could be used to ensure all derived classes are in the same
assembly, but base class is still usable from outside. Moreover, unlike with
interfaces, you ensure protocol and still don't allow anyone to implement it
outside of your package. Details here:
http://www.silicontaiga.com/orangy/000032.html
Any comments from the group?
Sincerely yours, Ilya Ryzhenkov
===================================
This list is hosted by DevelopMentor� http://www.develop.com
Some .NET courses you may be interested in:
NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls
View archives and manage your subscription(s) at http://discuss.develop.com