Fixed code issues

This commit is contained in:
DarthAffe committed 2021-06-01 23:53:56 +02:00
1 parent 4466acfbf7
commit 7b0e9152fd
54 files changed
+330 -275

No files matched your search

@@ -15,7 +15,7 @@ namespace RGB.NET.Devices.CoolerMaster.Helper
/// </summary>
/// <param name="source">The enum value to get the description from.</param>
/// <returns>The value of the <see cref="DescriptionAttribute"/> or the <see cref="Enum.ToString()" /> result of the source.</returns>
internal static string? GetDescription(this Enum source)
internal static string GetDescription(this Enum source)
=> source.GetAttribute<DescriptionAttribute>()?.Description ?? source.ToString();
/// <summary>