In Magic Square Component in a C# Application, and in Integrate a .NET Assembly Into a C# Application in particular, steps are illustrated that cover the basics of customizing your code in preparation for integrating your deployed .NET component into a large-scale enterprise application. These steps include:
Installing the MATLAB® Runtime on end user computers
Creating a Microsoft® Visual Studio® project
Creating references to the component and to the MWArray
API
Specifying component assemblies and namespaces
Initializing and instantiating your classes
Invoking the component using some implicit data conversion techniques
Handling errors using a basic try-catch block.