Method RegisterAssembly
| Edit this page View SourceRegisterAssembly(Assembly, bool)
Registers messages from a different assembly
Declaration
public static int RegisterAssembly(Assembly assembly, bool replace = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | assembly | The assembly to load custom message types from |
| bool | replace | Set to |
Returns
| Type | Description |
|---|---|
| int | Number of message types found. |
Remarks
The custom message MUST have a constructor taking a string as first parameter (message type name) and a string[] (message parts) as the second.
In addition the class must have the NmeaMessageTypeAttribute defind on the class.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | main, v3.0 |
| .NET | main, v3.0 |
| .NET Windows | main, v3.0 |
| .NET Android | main, v3.0 |
| .NET iOS | main, v3.0 |
| .NET Framework | main, v3.0, v2.2, v2.1, v2.0 |
| UWP | main, v3.0 |
| Xamarin.Android | v2.2, v2.1, v2.0 |
| Xamarin.iOS | v2.2, v2.1, v2.0 |