开发者

Why is the ASP.NET ListItem class sealed?

开发者 https://www.devze.com 2023-02-07 04:54 出处:网络
I\'m just 开发者_开发技巧curious. Why would the ASP.NET ListItem class need to be sealed? Back then I read some interview with one of the creators of the BCL, I think it was with ScottGu.

I'm just 开发者_开发技巧curious. Why would the ASP.NET ListItem class need to be sealed?


Back then I read some interview with one of the creators of the BCL, I think it was with ScottGu.

IIRC he said something similar to "For some classes, we regretted that we made them sealed, and for other classes we regretted that we did not make them sealed".

So my assumption is that it was a design desicion that may not be completely transparent to us BCL users.

On the other hand, probably some 100k+ user knows more internals about it.

0

精彩评论

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