C# unusual inheritance syntax w/ generics
- by anon
I happened upon this in an NHibernate class definition:
public class SQLiteConfiguration : PersistenceConfiguration<SQLiteConfiguration>
So this class inherits from a base class that is parameterized by... the derived class? My head just exploded.
Can someone explain what this means and how this pattern is useful?
(This is NOT an NHibernate-specific question, by the way.)