Skip to content

Commit

Permalink
Add EditorBrowsableState.Never to public methods from Utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Apr 3, 2024
1 parent 05122a0 commit 0610950
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DuckDB.NET.Bindings/Utils.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Text;

Expand All @@ -13,6 +14,7 @@ public static bool IsSuccess(this DuckDBState state)
return state == DuckDBState.Success;
}

[EditorBrowsable(EditorBrowsableState.Never)]
public static string ToManagedString(this IntPtr unmanagedString, bool freeWhenCopied = true, int? length = null)
{
string result;
Expand Down Expand Up @@ -55,6 +57,7 @@ public static string ToManagedString(this IntPtr unmanagedString, bool freeWhenC
return result;
}

[EditorBrowsable(EditorBrowsableState.Never)]
public static SafeUnmanagedMemoryHandle ToUnmanagedString(this string? managedString)
{
#if NET6_0_OR_GREATER
Expand Down

0 comments on commit 0610950

Please sign in to comment.