Skip to content

Commit 829adf4

Browse files
committed
fix(cache): correct CacheEntry struct accessibility to internal
Changed CacheEntry structs from private to internal to match the accessibility of the Cache fields that expose them. Fixes CS0052 compilation errors in NinoSerializer.cs and NinoDeserializer.cs.
1 parent af7440d commit 829adf4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Nino.Core/NinoDeserializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ public static class CachedDeserializer<T>
193193
internal static readonly bool IsSimpleType = !IsReferenceOrContainsReferences && !HasBaseType;
194194

195195
// Inline cache entries - pack type ID and delegate together for better cache locality
196-
private struct CacheEntry
196+
internal struct CacheEntry
197197
{
198198
public int TypeId;
199199
public DeserializeDelegate<T> Deserializer;
200200
}
201201

202-
private struct CacheEntryRef
202+
internal struct CacheEntryRef
203203
{
204204
public int TypeId;
205205
public DeserializeDelegateRef<T> Deserializer;

src/Nino.Core/NinoSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public static class CachedSerializer<T>
189189
internal static readonly bool IsSimpleType = !IsReferenceOrContainsReferences && !HasBaseType;
190190

191191
// Inline cache entry - packs type handle and delegate together for better cache locality
192-
private struct CacheEntry
192+
internal struct CacheEntry
193193
{
194194
public IntPtr TypeHandle;
195195
public SerializeDelegate<T> Serializer;

0 commit comments

Comments
 (0)