C# unusual inheritance syntax w/ generics
Posted
by
anon
on Stack Overflow
See other posts from Stack Overflow
or by anon
Published on 2011-01-08T03:38:21Z
Indexed on
2011/01/08
3:54 UTC
Read the original article
Hit count: 270
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.)
© Stack Overflow or respective owner