diff --git a/PInvoke/Shared/InteropServices/SafeElementArray.cs b/PInvoke/Shared/InteropServices/SafeElementArray.cs index f16d4d22..ac38a507 100644 --- a/PInvoke/Shared/InteropServices/SafeElementArray.cs +++ b/PInvoke/Shared/InteropServices/SafeElementArray.cs @@ -16,8 +16,10 @@ namespace Vanara.InteropServices /// The memory methods to use for allocation. public class SafeElementArray : SafeMemoryHandle, IEnumerable where TMem : IMemoryMethods, new() where TElem : struct where TPrefix : IConvertible { - private static readonly int ElemSize = InteropExtensions.SizeOf(typeof(TElem)); - private static readonly int PrefixSize = InteropExtensions.SizeOf(typeof(TPrefix)); + /// The size, in bytes, of TElem. + protected static readonly int ElemSize = InteropExtensions.SizeOf(typeof(TElem)); + /// The size, in bytes, of TPrefix. + protected static readonly int PrefixSize = InteropExtensions.SizeOf(typeof(TPrefix)); /// Initializes a new instance of the class. protected SafeElementArray() : this(0) { }