Commit db027890 authored by Dag Brattli's avatar Dag Brattli

Update readme

parent d0942bec
...@@ -49,9 +49,9 @@ var result2 = parser.TryParse(line2, out AisResult aisResult); // Returns true ...@@ -49,9 +49,9 @@ var result2 = parser.TryParse(line2, out AisResult aisResult); // Returns true
If an error occurs while parsing `TryParse` will raise an `ArgumentException`. If an error occurs while parsing `TryParse` will raise an `ArgumentException`.
In the second stage you parse the AIS payload data depending on the type of message. The type of In the second stage you parse the AIS payload data depending on the type of message. The type of
message is available in a valid `AisResult` from stage 1. To parse a message of type 1 you call message is available in the 'Type' property of a valid `AisResult` from stage 1. To parse a message
`TryParse` with an `out` parameter of type `MessageType123`. To parse a message of type 5 you call of type 1 you call `TryParse` with an `out` parameter of type `MessageType123`. To parse a message
`TryParse` with an `out` parameter of type `MessageType5`. of type 5 you call `TryParse` with an `out` parameter of type `MessageType5`.
```c# ```c#
var result = parser.TryParse(aisResult, out MessageType123 type123Result); var result = parser.TryParse(aisResult, out MessageType123 type123Result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment