Skip to content

Commit

Permalink
Updated NanoByte.Common dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Dec 6, 2021
1 parent 0ee5f3b commit bff8fa2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NanoByte.Common.WinForms" Version="2.10.8" />
<PackageReference Include="NanoByte.Common.WinForms" Version="2.11.0" />
</ItemGroup>

<!-- Bundle 3rd party libs in NuGet package -->
Expand Down
5 changes: 2 additions & 3 deletions src/StructureEditor/Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
// Licensed under the MIT License

using System.ComponentModel;
using System.Linq;
using System.Reflection;
using NanoByte.Common.Undo;
using NanoByte.Common.Values;
using ICommandExecutor = NanoByte.Common.Undo.ICommandExecutor;

namespace NanoByte.StructureEditor
Expand Down Expand Up @@ -71,6 +70,6 @@ public override string ToString()
/// Gets the <see cref="DescriptionAttribute.Description"/> of <typeparamref name="T"/>, if any.
/// </summary>
public static string? GetDescription<T>()
=> AttributeUtils.GetAttributes<DescriptionAttribute, T>().FirstOrDefault()?.Description;
=> typeof(T).GetCustomAttribute<DescriptionAttribute>()?.Description;
}
}
2 changes: 1 addition & 1 deletion src/StructureEditor/StructureEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<!-- Dependencies -->
<ItemGroup>
<PackageReference Include="NanoByte.Common" Version="2.10.8" />
<PackageReference Include="NanoByte.Common" Version="2.11.0" />
</ItemGroup>

</Project>

0 comments on commit bff8fa2

Please sign in to comment.