From 8401623f882680c59ef1396b8e35305e782477a2 Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Mon, 20 Jan 2020 23:46:00 -0800 Subject: [PATCH] Fix indent --- docs/concepts/CustomMessages.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/concepts/CustomMessages.md b/docs/concepts/CustomMessages.md index 2bd7b21..3949ed7 100644 --- a/docs/concepts/CustomMessages.md +++ b/docs/concepts/CustomMessages.md @@ -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. \ No newline at end of file +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.