Skip to content

Commit

Permalink
Merge pull request #79 from badcel/hide-throw-helper
Browse files Browse the repository at this point in the history
Hide throw helper from stacktrace
  • Loading branch information
badcel authored Jan 13, 2024
2 parents ad83bdf + c2ed528 commit 7531dd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/HidApi.Net/HidApi.Net.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionPrefix>1.0.1</VersionPrefix>

<RootNamespace>HidApi</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
3 changes: 3 additions & 0 deletions src/HidApi.Net/HidException.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System.Diagnostics;

namespace HidApi;

/// <summary>
Expand All @@ -7,6 +9,7 @@ public class HidException : Exception
{
private HidException(string message) : base(message) { }

[StackTraceHidden]
internal static void Throw(DeviceSafeHandle handle)
{
unsafe
Expand Down

0 comments on commit 7531dd5

Please sign in to comment.