mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +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)]
|
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
|
||||||
public class ConfigSnippetAttribute : Attribute
|
public class ConfigSnippetAttribute : Attribute
|
||||||
{
|
{
|
||||||
private string _ConfigSnippet;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a configuration snippet for the device.
|
/// Represents a configuration snippet for the device.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="configSnippet"></param>
|
/// <param name="configSnippet"></param>
|
||||||
public ConfigSnippetAttribute(string configSnippet)
|
public ConfigSnippetAttribute(string configSnippet)
|
||||||
{
|
{
|
||||||
//Debug.LogMessage(LogEventLevel.Verbose, "Setting Config Snippet {0}", configSnippet);
|
ConfigSnippet = configSnippet;
|
||||||
_ConfigSnippet = configSnippet;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the configuration snippet for the device.
|
/// Gets the configuration snippet for the device.
|
||||||
/// This snippet can be used in the DeviceConfig to instantiate the device.
|
/// This snippet can be used in the DeviceConfig to instantiate the device.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ConfigSnippet
|
public string ConfigSnippet { get; }
|
||||||
{
|
|
||||||
get { return _ConfigSnippet; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -8,25 +8,19 @@ namespace PepperDash.Essentials.Core
|
|||||||
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
|
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
|
||||||
public class DescriptionAttribute : Attribute
|
public class DescriptionAttribute : Attribute
|
||||||
{
|
{
|
||||||
private string _Description;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a description attribute for a device.
|
/// Represents a description attribute for a device.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="description"></param>
|
/// <param name="description"></param>
|
||||||
public DescriptionAttribute(string description)
|
public DescriptionAttribute(string description)
|
||||||
{
|
{
|
||||||
//Debug.LogMessage(LogEventLevel.Verbose, "Setting Description: {0}", description);
|
Description = description;
|
||||||
_Description = description;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the description for the device.
|
/// Gets the description for the device.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Description
|
public string Description { get; }
|
||||||
{
|
|
||||||
get { return _Description; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user