C# Interface Inheritance (Basics)

Posted by anton on Stack Overflow See other posts from Stack Overflow or by anton
Published on 2010-03-12T12:50:25Z Indexed on 2010/03/12 12:57 UTC
Read the original article Hit count: 653

Filed under:
|
|

Why does the following produce a compiler error:

public interface OwnSession : ISession { }

[...]
OwnSession s = SessionFactory.OpenSession(); // compiler error (in german unfortunately)
[...]

"SessionFactory" returns a "ISession" on "OpenSession()" (NHibernate)

© Stack Overflow or respective owner

Related posts about inheritance

Related posts about c#