From baed3455e806417ce7cc2f94aaf06b4ad8729a36 Mon Sep 17 00:00:00 2001 From: Moha Dehghan Date: Mon, 13 Nov 2023 19:22:25 +0100 Subject: [PATCH] fix: Make `TableHandle` implement `IDataContainerHandle` (#260) (#261) This fixes `NullReferenceException` when calling `Dbosoft.YaNco.Table.GetTypeDescription()` method. --- src/YaNco.Core/Internal/TableHandle.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/YaNco.Core/Internal/TableHandle.cs b/src/YaNco.Core/Internal/TableHandle.cs index 5f64505a..f37abd98 100644 --- a/src/YaNco.Core/Internal/TableHandle.cs +++ b/src/YaNco.Core/Internal/TableHandle.cs @@ -2,7 +2,7 @@ namespace Dbosoft.YaNco.Internal { - public class TableHandle : ITableHandle + public class TableHandle : ITableHandle, IDataContainerHandle { private readonly bool _destroyable; @@ -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() {