I\'m working with MS Excel interop in C# and I don\'t understand how this particular line of code works:
var excel = new Microsoft.Office.Interop.Excel.Appli
Actually code that you mentioned created instance of the ApplicationClass class and that is what CoClass attribute does.
ApplicationClass
CoClass
See this answer for details: How does the C# compiler detect COM types?