More global replace.
This commit is contained in:
Родитель
88c6623504
Коммит
078a32a6b4
|
@ -10,7 +10,7 @@ assignees: ''
|
|||
<!--
|
||||
Hi!
|
||||
|
||||
We have a separate toolkit repo for our Win32 controls that work in WPF or WinForms, please file an issue instead at https://github.com/windows-toolkit/CommunityToolkit.Net.Win32/issues/new
|
||||
We have a separate toolkit repo for our Win32 controls that work in WPF or WinForms, please file an issue instead at https://github.com/windows-toolkit/CommunityToolkit.Win32/issues/new
|
||||
|
||||
Otherwise, this issue will automatically be moved to that repo.
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace CommunityToolkit.Net.Collections
|
||||
namespace CommunityToolkit.Common.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// An interface for a grouped collection of items.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.ComponentModel;
|
|||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
namespace CommunityToolkit.Net.Collections
|
||||
namespace CommunityToolkit.Common.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// An observable group.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Diagnostics.CodeAnalysis;
|
|||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Collections
|
||||
namespace CommunityToolkit.Common.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// An observable list of observable groups.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Diagnostics.Contracts;
|
|||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Collections
|
||||
namespace CommunityToolkit.Common.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// The extensions methods to simplify the usage of <see cref="ObservableGroupedCollection{TKey, TValue}"/>.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
|
||||
namespace CommunityToolkit.Net.Collections
|
||||
namespace CommunityToolkit.Common.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A read-only observable group. It associates a <see cref="Key"/> to a <see cref="ReadOnlyObservableCollection{T}"/>.
|
||||
|
|
|
@ -9,7 +9,7 @@ using System.Collections.Specialized;
|
|||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
namespace CommunityToolkit.Net.Collections
|
||||
namespace CommunityToolkit.Common.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A read-only list of groups.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
namespace CommunityToolkit.Net
|
||||
namespace CommunityToolkit.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Set of helpers to convert between data types and notations.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
namespace CommunityToolkit.Net.Deferred
|
||||
namespace CommunityToolkit.Common.Deferred
|
||||
{
|
||||
/// <summary>
|
||||
/// <see cref="DeferredEventArgs"/> which can also be canceled.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.ComponentModel;
|
|||
|
||||
#pragma warning disable CA1001
|
||||
|
||||
namespace CommunityToolkit.Net.Deferred
|
||||
namespace CommunityToolkit.Common.Deferred
|
||||
{
|
||||
/// <summary>
|
||||
/// <see cref="EventArgs"/> which can retrieve a <see cref="EventDeferral"/> in order to process data asynchronously before an <see cref="EventHandler"/> completes and returns to the calling control.
|
||||
|
|
|
@ -9,7 +9,7 @@ using System.Threading.Tasks;
|
|||
|
||||
#pragma warning disable CA1063
|
||||
|
||||
namespace CommunityToolkit.Net.Deferred
|
||||
namespace CommunityToolkit.Common.Deferred
|
||||
{
|
||||
/// <summary>
|
||||
/// Deferral handle provided by a <see cref="DeferredEventArgs"/>.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace CommunityToolkit.Net
|
||||
namespace CommunityToolkit.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with arrays.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Linq;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.Deferred
|
||||
namespace CommunityToolkit.Common.Deferred
|
||||
{
|
||||
/// <summary>
|
||||
/// Extensions to <see cref="EventHandler{TEventArgs}"/> for Deferred Events.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Globalization;
|
|||
using System.Net;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace CommunityToolkit.Net
|
||||
namespace CommunityToolkit.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with strings and string representations.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Reflection;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net
|
||||
namespace CommunityToolkit.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with tasks.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.Collections
|
||||
namespace CommunityToolkit.Common.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// This interface represents a data source whose items can be loaded incrementally.
|
||||
|
|
|
@ -11,7 +11,7 @@ using System.Reflection;
|
|||
#endif
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with types.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with value types.
|
||||
|
|
|
@ -9,7 +9,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -9,7 +9,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.IO;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Runtime.CompilerServices;
|
|||
|
||||
#pragma warning disable CS8777
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Diagnostics;
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Diagnostics.Contracts;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to verify conditions when running code.
|
||||
|
|
|
@ -11,7 +11,7 @@ using System.Runtime.InteropServices;
|
|||
#endif
|
||||
using System.Threading;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to efficiently throw exceptions.
|
||||
|
|
|
@ -11,7 +11,7 @@ using System.Runtime.InteropServices;
|
|||
#endif
|
||||
using System.Threading;
|
||||
|
||||
namespace CommunityToolkit.Net.Diagnostics
|
||||
namespace CommunityToolkit.Diagnostics
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper methods to efficiently throw exceptions.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Diagnostics.CodeAnalysis;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that represents a boxed <typeparamref name="T"/> value on the managed heap.
|
||||
|
@ -61,7 +61,7 @@ namespace CommunityToolkit.Net.HighPerformance
|
|||
/// <exception cref="InvalidOperationException">Always thrown when this constructor is used (eg. from reflection).</exception>
|
||||
private Box()
|
||||
{
|
||||
throw new InvalidOperationException("The CommunityToolkit.Net.HighPerformance.Box<T> constructor should never be used");
|
||||
throw new InvalidOperationException("The CommunityToolkit.HighPerformance.Box<T> constructor should never be used");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -8,10 +8,10 @@ using System.Diagnostics;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Views;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Views;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers
|
||||
namespace CommunityToolkit.HighPerformance.Buffers
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a heap-based, array-backed output sink into which <typeparamref name="T"/> data can be written.
|
||||
|
@ -327,7 +327,7 @@ namespace CommunityToolkit.Net.HighPerformance.Buffers
|
|||
}
|
||||
|
||||
// Same representation used in Span<T>
|
||||
return $"CommunityToolkit.Net.HighPerformance.Buffers.ArrayPoolBufferWriter<{typeof(T)}>[{this.index}]";
|
||||
return $"CommunityToolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<{typeof(T)}>[{this.index}]";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers
|
||||
namespace CommunityToolkit.HighPerformance.Buffers
|
||||
{
|
||||
/// <summary>
|
||||
/// An <see langword="enum"/> that indicates a mode to use when allocating buffers.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using System.Buffers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers
|
||||
namespace CommunityToolkit.HighPerformance.Buffers
|
||||
{
|
||||
/// <summary>
|
||||
/// An interface that expands <see cref="IBufferWriter{T}"/> with the ability to also inspect
|
||||
|
|
|
@ -6,10 +6,10 @@ using System;
|
|||
using System.Buffers;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Internals.Interfaces;
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Internals.Interfaces;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Buffers.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom <see cref="MemoryManager{T}"/> that casts data from a <typeparamref name="TFrom"/> array, to <typeparamref name="TTo"/> values.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using System.Buffers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers.Internals.Interfaces
|
||||
namespace CommunityToolkit.HighPerformance.Buffers.Internals.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// An interface for a <see cref="MemoryManager{T}"/> instance that can reinterpret its underlying data.
|
||||
|
|
|
@ -6,10 +6,10 @@ using System;
|
|||
using System.Buffers;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Internals.Interfaces;
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Internals.Interfaces;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Buffers.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom <see cref="MemoryManager{T}"/> that casts data from a <see cref="MemoryManager{T}"/> of <typeparamref name="TFrom"/>, to <typeparamref name="TTo"/> values.
|
||||
|
|
|
@ -8,9 +8,9 @@ using System;
|
|||
using System.Buffers;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Buffers.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom <see cref="MemoryManager{T}"/> that can wrap arbitrary <see cref="object"/> instances.
|
||||
|
|
|
@ -6,10 +6,10 @@ using System;
|
|||
using System.Buffers;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Internals.Interfaces;
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Internals.Interfaces;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Buffers.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom <see cref="MemoryManager{T}"/> that casts data from a <see cref="string"/> to <typeparamref name="TTo"/> values.
|
||||
|
|
|
@ -7,9 +7,9 @@ using System.Buffers;
|
|||
using System.Diagnostics;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Views;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Views;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers
|
||||
namespace CommunityToolkit.HighPerformance.Buffers
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an output sink into which <typeparamref name="T"/> data can be written, backed by a <see cref="Memory{T}"/> instance.
|
||||
|
@ -154,7 +154,7 @@ namespace CommunityToolkit.Net.HighPerformance.Buffers
|
|||
}
|
||||
|
||||
// Same representation used in Span<T>
|
||||
return $"CommunityToolkit.Net.HighPerformance.Buffers.MemoryBufferWriter<{typeof(T)}>[{this.index}]";
|
||||
return $"CommunityToolkit.HighPerformance.Buffers.MemoryBufferWriter<{typeof(T)}>[{this.index}]";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -10,9 +10,9 @@ using System.Runtime.CompilerServices;
|
|||
#if NETCORE_RUNTIME || NET5_0
|
||||
using System.Runtime.InteropServices;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Views;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Views;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers
|
||||
namespace CommunityToolkit.HighPerformance.Buffers
|
||||
{
|
||||
/// <summary>
|
||||
/// An <see cref="IMemoryOwner{T}"/> implementation with an embedded length and a fast <see cref="Span{T}"/> accessor.
|
||||
|
@ -325,7 +325,7 @@ namespace CommunityToolkit.Net.HighPerformance.Buffers
|
|||
}
|
||||
|
||||
// Same representation used in Span<T>
|
||||
return $"CommunityToolkit.Net.HighPerformance.Buffers.MemoryOwner<{typeof(T)}>[{this.length}]";
|
||||
return $"CommunityToolkit.HighPerformance.Buffers.MemoryOwner<{typeof(T)}>[{this.length}]";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -10,9 +10,9 @@ using System.Runtime.CompilerServices;
|
|||
#if NETCORE_RUNTIME || NET5_0
|
||||
using System.Runtime.InteropServices;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Views;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Views;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers
|
||||
namespace CommunityToolkit.HighPerformance.Buffers
|
||||
{
|
||||
/// <summary>
|
||||
/// A stack-only type with the ability to rent a buffer of a specified length and getting a <see cref="Span{T}"/> from it.
|
||||
|
@ -205,7 +205,7 @@ namespace CommunityToolkit.Net.HighPerformance.Buffers
|
|||
}
|
||||
|
||||
// Same representation used in Span<T>
|
||||
return $"CommunityToolkit.Net.HighPerformance.Buffers.SpanOwner<{typeof(T)}>[{this.length}]";
|
||||
return $"CommunityToolkit.HighPerformance.Buffers.SpanOwner<{typeof(T)}>[{this.length}]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,13 +8,13 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
#if !NETSTANDARD1_4
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
#endif
|
||||
using BitOperations = CommunityToolkit.Net.HighPerformance.Helpers.Internals.BitOperations;
|
||||
using BitOperations = CommunityToolkit.HighPerformance.Helpers.Internals.BitOperations;
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers
|
||||
namespace CommunityToolkit.HighPerformance.Buffers
|
||||
{
|
||||
/// <summary>
|
||||
/// A configurable pool for <see cref="string"/> instances. This can be used to minimize allocations
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Buffers.Views
|
||||
namespace CommunityToolkit.HighPerformance.Buffers.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// A debug proxy used to display items in a 1D layout.
|
||||
|
|
|
@ -8,14 +8,14 @@ using System.Runtime.CompilerServices;
|
|||
#if SPAN_RUNTIME_SUPPORT
|
||||
using System.Runtime.InteropServices;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Memory.Internals;
|
||||
|
||||
#if !SPAN_RUNTIME_SUPPORT
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Enumerables
|
||||
namespace CommunityToolkit.HighPerformance.Enumerables
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="ref"/> <see langword="struct"/> that iterates readonly items from arbitrary memory locations.
|
||||
|
|
|
@ -9,7 +9,7 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Enumerables
|
||||
namespace CommunityToolkit.HighPerformance.Enumerables
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="ref"/> <see langword="struct"/> that enumerates the items in a given <see cref="ReadOnlySpan{T}"/> instance.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.ComponentModel;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Enumerables
|
||||
namespace CommunityToolkit.HighPerformance.Enumerables
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="ref"/> <see langword="struct"/> that tokenizes a given <see cref="ReadOnlySpan{T}"/> instance.
|
||||
|
@ -77,13 +77,13 @@ namespace CommunityToolkit.Net.HighPerformance.Enumerables
|
|||
this.start = newEnd;
|
||||
|
||||
// We need to call this extension explicitly or the extension method resolution rules for the C# compiler
|
||||
// will end up picking CommunityToolkit.Net.HighPerformance.ReadOnlySpanExtensions.IndexOf instead, even
|
||||
// will end up picking CommunityToolkit.HighPerformance.ReadOnlySpanExtensions.IndexOf instead, even
|
||||
// though the latter takes the parameter via a readonly reference. This is because the "in" modifier is
|
||||
// implicit, which makes the signature compatible, and because extension methods are matched in such a
|
||||
// way that methods "closest" to where they're used are preferred. Since this type shares the same root
|
||||
// namespace, this makes that extension a better match, so that it overrides the MemoryExtensions one.
|
||||
// This is not a problem for consumers of this package, as their code would be outside of the
|
||||
// CommunityToolkit.Net.HighPerformance namespace, so both extensions would be "equally distant", so that
|
||||
// CommunityToolkit.HighPerformance namespace, so both extensions would be "equally distant", so that
|
||||
// when they're both in scope it will be possible to choose which one to use by adding an explicit "in".
|
||||
int index = System.MemoryExtensions.IndexOf(this.span.Slice(newEnd), this.separator);
|
||||
|
||||
|
|
|
@ -8,14 +8,14 @@ using System.Runtime.CompilerServices;
|
|||
#if SPAN_RUNTIME_SUPPORT
|
||||
using System.Runtime.InteropServices;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
#if SPAN_RUNTIME_SUPPORT
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.HighPerformance.Memory.Internals;
|
||||
#else
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Enumerables
|
||||
namespace CommunityToolkit.HighPerformance.Enumerables
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="ref"/> <see langword="struct"/> that iterates items from arbitrary memory locations.
|
||||
|
|
|
@ -9,7 +9,7 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Enumerables
|
||||
namespace CommunityToolkit.HighPerformance.Enumerables
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="ref"/> <see langword="struct"/> that enumerates the items in a given <see cref="Span{T}"/> instance.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.ComponentModel;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Enumerables
|
||||
namespace CommunityToolkit.HighPerformance.Enumerables
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="ref"/> <see langword="struct"/> that tokenizes a given <see cref="Span{T}"/> instance.
|
||||
|
|
|
@ -8,14 +8,14 @@ using System.Runtime.CompilerServices;
|
|||
#if NETCORE_RUNTIME || NET5_0
|
||||
using System.Runtime.InteropServices;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
#if !NETCORE_RUNTIME && !NET5_0
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="Array"/> type.
|
||||
|
|
|
@ -7,14 +7,14 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
#if SPAN_RUNTIME_SUPPORT
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Internals;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="Array"/> type.
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
using System;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
#if SPAN_RUNTIME_SUPPORT
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Internals;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="Array"/> type.
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.IO;
|
||||
using System.Runtime.CompilerServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers;
|
||||
using CommunityToolkit.Net.HighPerformance.Streams;
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using CommunityToolkit.HighPerformance.Streams;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="ArrayPoolBufferWriter{T}"/> type.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using System.Buffers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="ArrayPool{T}"/> type.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="bool"/> type.
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="HashCode"/> type.
|
||||
|
|
|
@ -8,10 +8,10 @@ using System.Diagnostics.Contracts;
|
|||
using System.IO;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers;
|
||||
using CommunityToolkit.Net.HighPerformance.Streams;
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using CommunityToolkit.HighPerformance.Streams;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="IBufferWriter{T}"/> type.
|
||||
|
|
|
@ -7,9 +7,9 @@ using System.Buffers;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.IO;
|
||||
using System.Runtime.CompilerServices;
|
||||
using MemoryStream = CommunityToolkit.Net.HighPerformance.Streams.MemoryStream;
|
||||
using MemoryStream = CommunityToolkit.HighPerformance.Streams.MemoryStream;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="IMemoryOwner{T}"/> type.
|
||||
|
|
|
@ -10,7 +10,7 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="List{T}"/> type.
|
||||
|
|
|
@ -7,9 +7,9 @@ using System.Diagnostics.Contracts;
|
|||
using System.IO;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using MemoryStream = CommunityToolkit.Net.HighPerformance.Streams.MemoryStream;
|
||||
using MemoryStream = CommunityToolkit.HighPerformance.Streams.MemoryStream;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="Memory{T}"/> type.
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Extensions
|
||||
namespace CommunityToolkit.HighPerformance.Extensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="Nullable{T}"/> type.
|
||||
|
|
|
@ -8,11 +8,11 @@ using System.Diagnostics.Contracts;
|
|||
using System.IO;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Internals;
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Internals.Interfaces;
|
||||
using MemoryStream = CommunityToolkit.Net.HighPerformance.Streams.MemoryStream;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Internals.Interfaces;
|
||||
using MemoryStream = CommunityToolkit.HighPerformance.Streams.MemoryStream;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="ReadOnlyMemory{T}"/> type.
|
||||
|
|
|
@ -6,10 +6,10 @@ using System;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="ReadOnlySpan{T}"/> type.
|
||||
|
|
|
@ -6,10 +6,10 @@ using System;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="Span{T}"/> type.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.ComponentModel;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="SpinLock"/> type.
|
||||
|
|
|
@ -12,7 +12,7 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
#endif
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="Stream"/> type.
|
||||
|
|
|
@ -8,10 +8,10 @@ using System.Runtime.CompilerServices;
|
|||
#if NETCOREAPP2_1 || NETSTANDARD
|
||||
using System.Runtime.InteropServices;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with the <see cref="string"/> type.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Runtime.CompilerServices;
|
|||
using System.Runtime.Intrinsics.X86;
|
||||
#endif
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to perform bit operations on numeric types.
|
||||
|
|
|
@ -8,14 +8,14 @@ using System;
|
|||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Helpers.Internals;
|
||||
#if SPAN_RUNTIME_SUPPORT
|
||||
using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers;
|
||||
#else
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Combines the hash code of sequences of <typeparamref name="T"/> values into a single hash code.
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Runtime.CompilerServices;
|
|||
using static System.Numerics.BitOperations;
|
||||
#endif
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Helpers.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// Utility methods for intrinsic bit-twiddling operations. The methods use hardware intrinsics
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Helpers.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to process sequences of values by reference with a given step.
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Reflection;
|
|||
#endif
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Helpers.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// A helper class that with utility methods for dealing with references, and other low-level details.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Diagnostics.Contracts;
|
|||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Helpers.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to process sequences of values by reference.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Diagnostics.Contracts;
|
|||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Helpers.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to process sequences of values by reference.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers for working with <see cref="object"/> instances.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to work with parallel code in a highly optimized manner.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Drawing;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to work with parallel code in a highly optimized manner.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Runtime.CompilerServices;
|
|||
using System.Runtime.InteropServices;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to work with parallel code in a highly optimized manner.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to work with parallel code in a highly optimized manner.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Runtime.CompilerServices;
|
|||
using System.Runtime.InteropServices;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to work with parallel code in a highly optimized manner.
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to work with parallel code in a highly optimized manner.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Helpers
|
||||
namespace CommunityToolkit.HighPerformance.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Helpers to work with parallel code in a highly optimized manner.
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using static System.Math;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Memory.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Memory.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// A helper to validate arithmetic operations for <see cref="Memory2D{T}"/> and <see cref="Span2D{T}"/>.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance.Memory.Internals
|
||||
namespace CommunityToolkit.HighPerformance.Memory.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// A helper class to throw exceptions for memory types.
|
||||
|
|
|
@ -10,16 +10,16 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if SPAN_RUNTIME_SUPPORT
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Internals;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Views;
|
||||
using static CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.HighPerformance.Memory.Views;
|
||||
using static CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
|
||||
#pragma warning disable CA2231
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// <see cref="Memory2D{T}"/> represents a 2D region of arbitrary memory. It is to <see cref="Span2D{T}"/>
|
||||
|
@ -894,7 +894,7 @@ namespace CommunityToolkit.Net.HighPerformance
|
|||
/// <inheritdoc/>
|
||||
public override string ToString()
|
||||
{
|
||||
return $"CommunityToolkit.Net.HighPerformance.Memory2D<{typeof(T)}>[{this.height}, {this.width}]";
|
||||
return $"CommunityToolkit.HighPerformance.Memory2D<{typeof(T)}>[{this.height}, {this.width}]";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -10,16 +10,16 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if SPAN_RUNTIME_SUPPORT
|
||||
using CommunityToolkit.Net.HighPerformance.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.Buffers.Internals;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Views;
|
||||
using static CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.HighPerformance.Memory.Views;
|
||||
using static CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
|
||||
#pragma warning disable CA2231
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// A readonly version of <see cref="Memory2D{T}"/>.
|
||||
|
@ -907,7 +907,7 @@ namespace CommunityToolkit.Net.HighPerformance
|
|||
/// <inheritdoc/>
|
||||
public override string ToString()
|
||||
{
|
||||
return $"CommunityToolkit.Net.HighPerformance.ReadOnlyMemory2D<{typeof(T)}>[{this.height}, {this.width}]";
|
||||
return $"CommunityToolkit.HighPerformance.ReadOnlyMemory2D<{typeof(T)}>[{this.height}, {this.width}]";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
using System;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.HighPerformance.Memory.Internals;
|
||||
#if SPAN_RUNTIME_SUPPORT
|
||||
using System.Runtime.InteropServices;
|
||||
#else
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <inheritdoc cref="ReadOnlySpan2D{T}"/>
|
||||
public readonly ref partial struct ReadOnlySpan2D<T>
|
||||
|
|
|
@ -9,17 +9,17 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if !SPAN_RUNTIME_SUPPORT
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Views;
|
||||
using CommunityToolkit.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.HighPerformance.Memory.Views;
|
||||
#if !SPAN_RUNTIME_SUPPORT
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0809, CA1065
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// A readonly version of <see cref="Span2D{T}"/>.
|
||||
|
@ -962,7 +962,7 @@ namespace CommunityToolkit.Net.HighPerformance
|
|||
[Obsolete("Equals() on Span will always throw an exception. Use == instead.")]
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
throw new NotSupportedException("CommunityToolkit.Net.HighPerformance.ReadOnlySpan2D<T>.Equals(object) is not supported");
|
||||
throw new NotSupportedException("CommunityToolkit.HighPerformance.ReadOnlySpan2D<T>.Equals(object) is not supported");
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ReadOnlySpan{T}.GetHashCode()"/>
|
||||
|
@ -970,13 +970,13 @@ namespace CommunityToolkit.Net.HighPerformance
|
|||
[Obsolete("GetHashCode() on Span will always throw an exception.")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
throw new NotSupportedException("CommunityToolkit.Net.HighPerformance.ReadOnlySpan2D<T>.GetHashCode() is not supported");
|
||||
throw new NotSupportedException("CommunityToolkit.HighPerformance.ReadOnlySpan2D<T>.GetHashCode() is not supported");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string ToString()
|
||||
{
|
||||
return $"CommunityToolkit.Net.HighPerformance.ReadOnlySpan2D<{typeof(T)}>[{Height}, {this.width}]";
|
||||
return $"CommunityToolkit.HighPerformance.ReadOnlySpan2D<{typeof(T)}>[{Height}, {this.width}]";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
using System;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using CommunityToolkit.Net.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using CommunityToolkit.HighPerformance.Memory.Internals;
|
||||
#if SPAN_RUNTIME_SUPPORT
|
||||
using System.Runtime.InteropServices;
|
||||
#else
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <inheritdoc cref="Span2D{T}"/>
|
||||
public readonly ref partial struct Span2D<T>
|
||||
|
|
|
@ -9,17 +9,17 @@ using System.Diagnostics.Contracts;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if !SPAN_RUNTIME_SUPPORT
|
||||
using CommunityToolkit.Net.HighPerformance.Helpers;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
#endif
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.Net.HighPerformance.Memory.Views;
|
||||
using CommunityToolkit.HighPerformance.Memory.Internals;
|
||||
using CommunityToolkit.HighPerformance.Memory.Views;
|
||||
#if !SPAN_RUNTIME_SUPPORT
|
||||
using RuntimeHelpers = CommunityToolkit.Net.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
using RuntimeHelpers = CommunityToolkit.HighPerformance.Helpers.Internals.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0809, CA1065
|
||||
|
||||
namespace CommunityToolkit.Net.HighPerformance
|
||||
namespace CommunityToolkit.HighPerformance
|
||||
{
|
||||
/// <summary>
|
||||
/// <see cref="Span2D{T}"/> represents a 2D region of arbitrary memory. Like the <see cref="Span{T}"/> type,
|
||||
|
@ -1118,7 +1118,7 @@ namespace CommunityToolkit.Net.HighPerformance
|
|||
[Obsolete("Equals() on Span will always throw an exception. Use == instead.")]
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
throw new NotSupportedException("CommunityToolkit.Net.HighPerformance.Span2D<T>.Equals(object) is not supported");
|
||||
throw new NotSupportedException("CommunityToolkit.HighPerformance.Span2D<T>.Equals(object) is not supported");
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Span{T}.GetHashCode()"/>
|
||||
|
@ -1126,13 +1126,13 @@ namespace CommunityToolkit.Net.HighPerformance
|
|||
[Obsolete("GetHashCode() on Span will always throw an exception.")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
throw new NotSupportedException("CommunityToolkit.Net.HighPerformance.Span2D<T>.GetHashCode() is not supported");
|
||||
throw new NotSupportedException("CommunityToolkit.HighPerformance.Span2D<T>.GetHashCode() is not supported");
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string ToString()
|
||||
{
|
||||
return $"CommunityToolkit.Net.HighPerformance.Span2D<{typeof(T)}>[{Height}, {this.width}]";
|
||||
return $"CommunityToolkit.HighPerformance.Span2D<{typeof(T)}>[{Height}, {this.width}]";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче