In the majority of cases, the .NET API mirrors the structure of the COM API, so porting code to .NET involves setting up a .NET project, copying the code lines, and renaming classes and methods to match the .NET names. If you are using C# instead of VB.NET, some additional changes to code structure are required. The following sections describe some of the differences in the two APIs.