mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-13 03:35:00 +00:00
style: switch to auto property for attributes
This commit is contained in:
@@ -8,26 +8,20 @@ namespace PepperDash.Essentials.Core
|
||||
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
|
||||
public class ConfigSnippetAttribute : Attribute
|
||||
{
|
||||
private string _ConfigSnippet;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a configuration snippet for the device.
|
||||
/// </summary>
|
||||
/// <param name="configSnippet"></param>
|
||||
public ConfigSnippetAttribute(string configSnippet)
|
||||
{
|
||||
//Debug.LogMessage(LogEventLevel.Verbose, "Setting Config Snippet {0}", configSnippet);
|
||||
_ConfigSnippet = configSnippet;
|
||||
ConfigSnippet = configSnippet;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the configuration snippet for the device.
|
||||
/// This snippet can be used in the DeviceConfig to instantiate the device.
|
||||
/// </summary>
|
||||
public string ConfigSnippet
|
||||
{
|
||||
get { return _ConfigSnippet; }
|
||||
}
|
||||
public string ConfigSnippet { get; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user