I would like to know which is the member (if any) in the .NET Framework class library to replace a external (process) call to RegSvr32.exe and Regasm.exe to avoid doing those process calls and stderror/stdoutput/exit-code handling.
I've found the method: System.Runtime.InteropServices.RegistrationServices.RegisterAssembly, which in its description says:
Registers the classes in a managed assembly to enable creation from COM
...So it says is for managed assemblies and it takes an Assembly
type as argument (which only can load/handle managed assemblies), then for sure that method must be the equivalent for calling Regasm.exe to register .NET assemblies. Now, which is the equivalent member/class/method or the platform invoke definitions for calling RegSvr32.exe to register a native dll?.