Fix indent

This commit is contained in:
Morten Nielsen 2020-01-20 23:46:00 -08:00 committed by GitHub
parent 2b4e0a07cd
commit 8401623f88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,15 +10,15 @@ Next ensure you have a constructor that takes the `TypeName` string parameter fi
Example:
```cs
[NmeaMessageType("PTEST")]
public class CustomMessage : NmeaMessage
[NmeaMessageType("PTEST")]
public class CustomMessage : NmeaMessage
{
public CustomMessage(string type, string[] parameters) : base(type, parameters)
{
public CustomMessage(string type, string[] parameters) : base(type, parameters)
{
Value = parameters[0];
}
public string Value { get; }
Value = parameters[0];
}
public string Value { get; }
}
```
Next register this with the NMEA Parser using either:
@ -80,4 +80,4 @@ var msg1 = NmeaMessage.Parse(input1);
var msg2 = NmeaMessage.Parse(input2, msg1 as IMultiSentenceMessage);
```
If msg1 and msg2 aren't the same instance, it means the message couldn't be added to the previous message, and a new message was generated.
If msg1 and msg2 aren't the same instance, it means the message couldn't be added to the previous message, and a new message was generated.