RegistryKey
has two private constructors with parameters. Probably the error message is because there isn't a default constructor RegistryKey()
, because if you define a constructor with parameters, the implicit parameterless constructor isn't generated. Being them private, you don't see them.
Technically even abstract classes can't be built with new
. You then could create a private derived class (or an internal derived class).