diff --git a/csharp/Platform.Data.Doublets.Tests/ResizableDirectMemoryLinksTests.cs b/csharp/Platform.Data.Doublets.Tests/ResizableDirectMemoryLinksTests.cs index eadbe02b9..eddf2c8f9 100644 --- a/csharp/Platform.Data.Doublets.Tests/ResizableDirectMemoryLinksTests.cs +++ b/csharp/Platform.Data.Doublets.Tests/ResizableDirectMemoryLinksTests.cs @@ -8,7 +8,7 @@ namespace Platform.Data.Doublets.Tests { public static class ResizableDirectMemoryLinksTests { - private static readonly LinksConstants _constants = Default>.Instance; + private static readonly LinksConstants _constants = new LinksConstants(enableExternalReferencesSupport: true); [Fact] public static void BasicFileMappedMemoryTest() diff --git a/csharp/Platform.Data.Doublets/Link.cs b/csharp/Platform.Data.Doublets/Link.cs index b09927904..656680f26 100644 --- a/csharp/Platform.Data.Doublets/Link.cs +++ b/csharp/Platform.Data.Doublets/Link.cs @@ -24,7 +24,7 @@ public struct Link : IEquatable>, IReadOnlyList /// /// public static readonly Link Null = new Link(); - private static readonly LinksConstants _constants = Default>.Instance; + private static readonly LinksConstants _constants = new LinksConstants(enableExternalReferencesSupport: true); private const int Length = 3; /// diff --git a/csharp/Platform.Data.Doublets/Memory/Split/Generic/SplitMemoryLinks.cs b/csharp/Platform.Data.Doublets/Memory/Split/Generic/SplitMemoryLinks.cs index 89636c108..0aab37f6c 100644 --- a/csharp/Platform.Data.Doublets/Memory/Split/Generic/SplitMemoryLinks.cs +++ b/csharp/Platform.Data.Doublets/Memory/Split/Generic/SplitMemoryLinks.cs @@ -79,7 +79,7 @@ public SplitMemoryLinks(IResizableDirectMemory dataMemory, IResizableDirectMemor /// /// [MethodImpl(methodImplOptions: MethodImplOptions.AggressiveInlining)] - public SplitMemoryLinks(IResizableDirectMemory dataMemory, IResizableDirectMemory indexMemory, long memoryReservationStep) : this(dataMemory: dataMemory, indexMemory: indexMemory, memoryReservationStep: memoryReservationStep, constants: Default>.Instance, indexTreeType: IndexTreeType.Default, useLinkedList: true) { } + public SplitMemoryLinks(IResizableDirectMemory dataMemory, IResizableDirectMemory indexMemory, long memoryReservationStep) : this(dataMemory: dataMemory, indexMemory: indexMemory, memoryReservationStep: memoryReservationStep, constants: new LinksConstants(enableExternalReferencesSupport: true), indexTreeType: IndexTreeType.Default, useLinkedList: true) { } /// /// diff --git a/csharp/Platform.Data.Doublets/Memory/Split/Generic/SplitMemoryLinksBase.cs b/csharp/Platform.Data.Doublets/Memory/Split/Generic/SplitMemoryLinksBase.cs index 9ab5ade78..55adf23c0 100644 --- a/csharp/Platform.Data.Doublets/Memory/Split/Generic/SplitMemoryLinksBase.cs +++ b/csharp/Platform.Data.Doublets/Memory/Split/Generic/SplitMemoryLinksBase.cs @@ -194,7 +194,7 @@ protected SplitMemoryLinksBase(IResizableDirectMemory dataMemory, IResizableDire /// /// [MethodImpl(methodImplOptions: MethodImplOptions.AggressiveInlining)] - protected SplitMemoryLinksBase(IResizableDirectMemory dataMemory, IResizableDirectMemory indexMemory, long memoryReservationStep) : this(dataMemory: dataMemory, indexMemory: indexMemory, memoryReservationStep: memoryReservationStep, constants: Default>.Instance, useLinkedList: true) { } + protected SplitMemoryLinksBase(IResizableDirectMemory dataMemory, IResizableDirectMemory indexMemory, long memoryReservationStep) : this(dataMemory: dataMemory, indexMemory: indexMemory, memoryReservationStep: memoryReservationStep, constants: new LinksConstants(enableExternalReferencesSupport: true), useLinkedList: true) { } /// /// Возвращает общее число связей находящихся в хранилище. diff --git a/csharp/Platform.Data.Doublets/Memory/United/Generic/UnitedMemoryLinks.cs b/csharp/Platform.Data.Doublets/Memory/United/Generic/UnitedMemoryLinks.cs index 8eadaf8b0..7349c3cea 100644 --- a/csharp/Platform.Data.Doublets/Memory/United/Generic/UnitedMemoryLinks.cs +++ b/csharp/Platform.Data.Doublets/Memory/United/Generic/UnitedMemoryLinks.cs @@ -72,7 +72,7 @@ public UnitedMemoryLinks(IResizableDirectMemory memory) : this(memory, DefaultLi /// /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - public UnitedMemoryLinks(IResizableDirectMemory memory, long memoryReservationStep) : this(memory, memoryReservationStep, Default>.Instance, IndexTreeType.Default) { } + public UnitedMemoryLinks(IResizableDirectMemory memory, long memoryReservationStep) : this(memory, memoryReservationStep, new LinksConstants(enableExternalReferencesSupport: true), IndexTreeType.Default) { } /// /// diff --git a/csharp/Platform.Data.Doublets/Memory/United/Generic/UnitedMemoryLinksBase.cs b/csharp/Platform.Data.Doublets/Memory/United/Generic/UnitedMemoryLinksBase.cs index ecaa89d37..88c80278f 100644 --- a/csharp/Platform.Data.Doublets/Memory/United/Generic/UnitedMemoryLinksBase.cs +++ b/csharp/Platform.Data.Doublets/Memory/United/Generic/UnitedMemoryLinksBase.cs @@ -155,7 +155,7 @@ protected UnitedMemoryLinksBase(IResizableDirectMemory memory, long memoryReserv /// /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - protected UnitedMemoryLinksBase(IResizableDirectMemory memory, long memoryReservationStep) : this(memory, memoryReservationStep, Default>.Instance) { } + protected UnitedMemoryLinksBase(IResizableDirectMemory memory, long memoryReservationStep) : this(memory, memoryReservationStep, new LinksConstants(enableExternalReferencesSupport: true)) { } /// ///