I guess technically, it doesn't have to be a COM assembly specifically. But, I wanted to include that because that's how I searched for it myself.
Currently, we use a batch file that registers them with the following line:
c:\windows\microsoft.net\framework\v4.0.30319\regasm.exe c:\Path\To\AssemblyToRegister.dll /codebase /s /tlb
How would you register it in C# code so we can get rid of the batch files and automate this process a little better?