Why is the ASP.NET ListItem class sealed?

I'm just curious. Why does the ASP.NET ListItem class need to be sealed?

+4
source share
1 answer

At that time I read some interview with one of the creators of BCL, I think it was with ScottGu.

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

So, my assumption is that it was a constructive solution that may not be completely transparent to us BCL users.

On the other hand, perhaps about 100k + the user knows more about this.

+2
source

Source: https://habr.com/ru/post/1337063/


All Articles