diff --git a/src/PepperDash.Essentials.Core/Devices/ConfigSnippetAttribute.cs b/src/PepperDash.Essentials.Core/Devices/ConfigSnippetAttribute.cs index 76d3640c..a1fdef35 100644 --- a/src/PepperDash.Essentials.Core/Devices/ConfigSnippetAttribute.cs +++ b/src/PepperDash.Essentials.Core/Devices/ConfigSnippetAttribute.cs @@ -8,26 +8,20 @@ namespace PepperDash.Essentials.Core [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)] public class ConfigSnippetAttribute : Attribute { - private string _ConfigSnippet; - /// /// Represents a configuration snippet for the device. /// /// public ConfigSnippetAttribute(string configSnippet) { - //Debug.LogMessage(LogEventLevel.Verbose, "Setting Config Snippet {0}", configSnippet); - _ConfigSnippet = configSnippet; + ConfigSnippet = configSnippet; } /// /// Gets the configuration snippet for the device. /// This snippet can be used in the DeviceConfig to instantiate the device. /// - public string ConfigSnippet - { - get { return _ConfigSnippet; } - } + public string ConfigSnippet { get; } } } \ No newline at end of file diff --git a/src/PepperDash.Essentials.Core/Devices/DescriptionAttribute.cs b/src/PepperDash.Essentials.Core/Devices/DescriptionAttribute.cs index 6d4073d9..abe51665 100644 --- a/src/PepperDash.Essentials.Core/Devices/DescriptionAttribute.cs +++ b/src/PepperDash.Essentials.Core/Devices/DescriptionAttribute.cs @@ -8,25 +8,19 @@ namespace PepperDash.Essentials.Core [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)] public class DescriptionAttribute : Attribute { - private string _Description; - /// /// Represents a description attribute for a device. /// /// public DescriptionAttribute(string description) { - //Debug.LogMessage(LogEventLevel.Verbose, "Setting Description: {0}", description); - _Description = description; + Description = description; } /// /// Gets the description for the device. /// - public string Description - { - get { return _Description; } - } + public string Description { get; } } } \ No newline at end of file