Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is the ASP.NET ListItem class sealed?

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

like image 493
John K Avatar asked Nov 06 '22 03:11

John K


1 Answers

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.

like image 68
Uwe Keim Avatar answered Nov 26 '22 20:11

Uwe Keim