Skip to content

Commit 7fafaeb

Browse files
committed
Fix for older C# version. (#100)
1 parent d9675f7 commit 7fafaeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReClass.NET/Extensions/XAttributeExtensions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ namespace ReClassNET.Extensions
55
{
66
public static class XAttributeExtensions
77
{
8-
public static TEnum GetEnumValue<TEnum>(this XAttribute attribute) where TEnum : struct, Enum
8+
public static TEnum GetEnumValue<TEnum>(this XAttribute attribute) where TEnum : struct
99
{
10-
TEnum @enum = default;
10+
TEnum @enum = default(TEnum);
1111
if (attribute != null)
1212
{
1313
Enum.TryParse(attribute.Value, out @enum);

0 commit comments

Comments
 (0)