开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜