# Programmers Guide
## Sample Application
There is currently 1 script available:
`EcMasterDemoDotNet.bat`
: Starts the console demo application
## Sample Code
The .NET demo application contains of 1 class:
`EcDemoApp.cs`:
: Console demo application
## Wrapper
### Modules
The .NET Wrapper contains of 5 modules:
`CEcWrapperDotNet.cs`
: ### *class* CEcWrapperDotNet
EC-Wrapper base class
### *class* CEcMasterDotNet
EC-Master
### *class* CEcMasterRasServerDotNet
RAS Server for EC-Master
### *class* CEcMasterMbxGatewayClientDotNet
Mailbox Gateway Client for EC-Master
### *class* CEcMasterMbxGatewayServerDotNet
Mailbox Gateway Server for EC-Master
### *class* CEcSimulatorDotNet
EC-Simulator
### *class* CEcSimulatorRasServerDotNet
RAS Server for EC-Simulator
### *class* CEcRasClientDotNet
RAS Client for EC-Master / EC-Simulator
`CEcMotionDotNet.cs`
: ### *class* CEcMotionDotNet
EC-Motion interface
`CEcWrapperDotNetTypes.cs`
: .NET types
`CEcWrapper.cs`
: .NET C based interface (internal)
`CEcWrapperTypes.cs`
: .NET C based types (internal)
### Return code vs. exception handling
The most of all API functions returns a return code for error handling. This behaviour can be changed to throw an exception in error case by simply setting:
```csharp
CEcWrapperDotNet.EnableExceptionHandling = true; // default is false
```