We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9675f7 commit 7fafaebCopy full SHA for 7fafaeb
ReClass.NET/Extensions/XAttributeExtensions.cs
@@ -5,9 +5,9 @@ namespace ReClassNET.Extensions
5
{
6
public static class XAttributeExtensions
7
8
- public static TEnum GetEnumValue<TEnum>(this XAttribute attribute) where TEnum : struct, Enum
+ public static TEnum GetEnumValue<TEnum>(this XAttribute attribute) where TEnum : struct
9
10
- TEnum @enum = default;
+ TEnum @enum = default(TEnum);
11
if (attribute != null)
12
13
Enum.TryParse(attribute.Value, out @enum);
0 commit comments