why cant SqlDataReader class be inherited?
SqlData开发者_StackOverflowReader
class is not marked sealed then what makes it uninheritable?
The SqlDataReader
type's constructor is marked as internal
which means it can only be instantiated through types in the System.Data.dll
assembly. This also prohibits you from inheriting from it, as the base type cannot be instantiated.
Its only constructor is marked as internal, so it cannot be called by any non-framework code.
精彩评论