Why does Microsoft make tons of useful .Net Framework classes internal?

I am always running into problems with this. For example, i am trying to make some custom classes that inhert things like EventTrigger, Triggerbase, TriggerAction, etc to add better conditional and logical execution in XAML in ControlTemplates and Styles. This is difficult on quite a .Net few classes,and requires you to rewrite tons of duplicate code to get around their internal visibility.

Why does Microsoft care if developers want to extend classes like these? Are they trying to prevent developers from incorrectly implementing them? If my implementation ends up causing issues elsewhere, that's my problem. What is to be gained by limiting what can a developer can do with .Net?

by CCRed95 via /r/csharp

Leave a Reply