From c5581d21ae8e7d61f21f1c174698356469d2291a Mon Sep 17 00:00:00 2001 From: Simon G Date: Sat, 10 Apr 2021 12:20:21 +0200 Subject: [PATCH] - adjust to nullable --- Lib.Driver/Xml/XmlButton.cs | 2 +- Lib.Driver/Xml/XmlChannel.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib.Driver/Xml/XmlButton.cs b/Lib.Driver/Xml/XmlButton.cs index 85035b1..4035278 100644 --- a/Lib.Driver/Xml/XmlButton.cs +++ b/Lib.Driver/Xml/XmlButton.cs @@ -10,6 +10,6 @@ namespace Lib.Driver.Xml public class XmlButton { [XmlElement("Type")] - public string ButtonType { get; set; } + public string? ButtonType { get; set; } } } \ No newline at end of file diff --git a/Lib.Driver/Xml/XmlChannel.cs b/Lib.Driver/Xml/XmlChannel.cs index bec90b1..3b0d29a 100644 --- a/Lib.Driver/Xml/XmlChannel.cs +++ b/Lib.Driver/Xml/XmlChannel.cs @@ -11,13 +11,13 @@ namespace Lib.Driver.Xml public class XmlChannel { [XmlElement("Fader")] - public XmlFader Fader { get; set; } + public XmlFader? Fader { get; set; } [XmlElement("Knob")] - public XmlKnob Knob { get; set; } + public XmlKnob? Knob { get; set; } [XmlArray("Buttons")] [XmlArrayItem("Button", typeof(XmlButton))] - public List Buttons { get; set; } + public List? Buttons { get; set; } } } \ No newline at end of file