Skip to content

Commit

Permalink
fix: Make TableHandle implement IDataContainerHandle (#260) (#261)
Browse files Browse the repository at this point in the history
This fixes `NullReferenceException` when calling `Dbosoft.YaNco.Table.GetTypeDescription()` method.
  • Loading branch information
prodehghan authored and fw2568 committed Nov 13, 2023
1 parent 8142882 commit baed345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/YaNco.Core/Internal/TableHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dbosoft.YaNco.Internal
{
public class TableHandle : ITableHandle
public class TableHandle : ITableHandle, IDataContainerHandle
{
private readonly bool _destroyable;

Expand All @@ -12,7 +12,7 @@ internal TableHandle(IntPtr ptr, bool destroyable)
Ptr = ptr;
}

internal IntPtr Ptr { get; private set; }
public IntPtr Ptr { get; private set; }

public void Dispose()
{
Expand Down

0 comments on commit baed345

Please sign in to comment.