Skip to content

Commit 7c581ee

Browse files
committed
Moved [Memory|Span]2D types to root namespace
1 parent b22d9c7 commit 7c581ee

14 files changed

+10
-26
lines changed

Microsoft.Toolkit.HighPerformance/Extensions/ArrayExtensions.2D.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#endif
1212
using Microsoft.Toolkit.HighPerformance.Enumerables;
1313
using Microsoft.Toolkit.HighPerformance.Helpers.Internals;
14-
using Microsoft.Toolkit.HighPerformance.Memory;
1514
using RuntimeHelpers = Microsoft.Toolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
1615

1716
namespace Microsoft.Toolkit.HighPerformance.Extensions

Microsoft.Toolkit.HighPerformance/Extensions/ArrayExtensions.3D.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
using Microsoft.Toolkit.HighPerformance.Buffers.Internals;
1111
#endif
1212
using Microsoft.Toolkit.HighPerformance.Helpers.Internals;
13-
using Microsoft.Toolkit.HighPerformance.Memory;
1413
using RuntimeHelpers = Microsoft.Toolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
1514

1615
namespace Microsoft.Toolkit.HighPerformance.Extensions

Microsoft.Toolkit.HighPerformance/Extensions/MemoryExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
using System.IO;
88
using System.Runtime.CompilerServices;
99
using System.Runtime.InteropServices;
10-
#if SPAN_RUNTIME_SUPPORT
11-
using Microsoft.Toolkit.HighPerformance.Memory;
12-
#endif
1310
using MemoryStream = Microsoft.Toolkit.HighPerformance.Streams.MemoryStream;
1411

1512
namespace Microsoft.Toolkit.HighPerformance.Extensions

Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlyMemoryExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
using System.Runtime.InteropServices;
1111
using Microsoft.Toolkit.HighPerformance.Buffers.Internals;
1212
using Microsoft.Toolkit.HighPerformance.Buffers.Internals.Interfaces;
13-
#if SPAN_RUNTIME_SUPPORT
14-
using Microsoft.Toolkit.HighPerformance.Memory;
15-
#endif
1613
using MemoryStream = Microsoft.Toolkit.HighPerformance.Streams.MemoryStream;
1714

1815
namespace Microsoft.Toolkit.HighPerformance.Extensions

Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlySpanExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
using System.Runtime.InteropServices;
99
using Microsoft.Toolkit.HighPerformance.Enumerables;
1010
using Microsoft.Toolkit.HighPerformance.Helpers.Internals;
11-
#if SPAN_RUNTIME_SUPPORT
12-
using Microsoft.Toolkit.HighPerformance.Memory;
13-
#endif
1411

1512
namespace Microsoft.Toolkit.HighPerformance.Extensions
1613
{

Microsoft.Toolkit.HighPerformance/Extensions/SpanExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
using System.Runtime.InteropServices;
99
using Microsoft.Toolkit.HighPerformance.Enumerables;
1010
using Microsoft.Toolkit.HighPerformance.Helpers.Internals;
11-
#if SPAN_RUNTIME_SUPPORT
12-
using Microsoft.Toolkit.HighPerformance.Memory;
13-
#endif
1411

1512
namespace Microsoft.Toolkit.HighPerformance.Extensions
1613
{

Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IInAction2D.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System;
66
using System.Runtime.CompilerServices;
77
using System.Threading.Tasks;
8-
using Microsoft.Toolkit.HighPerformance.Memory;
98

109
namespace Microsoft.Toolkit.HighPerformance.Helpers
1110
{

Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IRefAction2D.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System;
66
using System.Runtime.CompilerServices;
77
using System.Threading.Tasks;
8-
using Microsoft.Toolkit.HighPerformance.Memory;
98

109
namespace Microsoft.Toolkit.HighPerformance.Helpers
1110
{

Microsoft.Toolkit.HighPerformance/Memory/Memory2D{T}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#pragma warning disable CA2231
2121

22-
namespace Microsoft.Toolkit.HighPerformance.Memory
22+
namespace Microsoft.Toolkit.HighPerformance
2323
{
2424
/// <summary>
2525
/// <see cref="Memory2D{T}"/> represents a 2D region of arbitrary memory. It is to <see cref="Span2D{T}"/>
@@ -894,7 +894,7 @@ public override int GetHashCode()
894894
/// <inheritdoc/>
895895
public override string ToString()
896896
{
897-
return $"Microsoft.Toolkit.HighPerformance.Memory.Memory2D<{typeof(T)}>[{this.height}, {this.width}]";
897+
return $"Microsoft.Toolkit.HighPerformance.Memory2D<{typeof(T)}>[{this.height}, {this.width}]";
898898
}
899899

900900
/// <summary>

Microsoft.Toolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#pragma warning disable CA2231
2121

22-
namespace Microsoft.Toolkit.HighPerformance.Memory
22+
namespace Microsoft.Toolkit.HighPerformance
2323
{
2424
/// <summary>
2525
/// A readonly version of <see cref="Memory2D{T}"/>.
@@ -907,7 +907,7 @@ public override int GetHashCode()
907907
/// <inheritdoc/>
908908
public override string ToString()
909909
{
910-
return $"Microsoft.Toolkit.HighPerformance.Memory.ReadOnlyMemory2D<{typeof(T)}>[{this.height}, {this.width}]";
910+
return $"Microsoft.Toolkit.HighPerformance.ReadOnlyMemory2D<{typeof(T)}>[{this.height}, {this.width}]";
911911
}
912912

913913
/// <summary>

0 commit comments

Comments
 (0)