diff --git a/CommunityToolkit.Diagnostics/Extensions/TypeExtensions.cs b/CommunityToolkit.Diagnostics/Extensions/TypeExtensions.cs index f7e2a4ddb..3aad6feee 100644 --- a/CommunityToolkit.Diagnostics/Extensions/TypeExtensions.cs +++ b/CommunityToolkit.Diagnostics/Extensions/TypeExtensions.cs @@ -68,7 +68,7 @@ static string FormatDisplayString(Type type, int genericTypeOffset, ReadOnlySpan } // By checking generic types here we are only interested in specific cases, - // ie. nullable value types or value typles. We have a separate path for custom + // ie. nullable value types or value tuples. We have a separate path for custom // generic types, as we can't rely on this API in that case, as it doesn't show // a difference between nested types that are themselves generic, or nested simple // types from a generic declaring type. To deal with that, we need to manually track diff --git a/CommunityToolkit.Diagnostics/ThrowHelper.Generic.cs b/CommunityToolkit.Diagnostics/ThrowHelper.Generic.cs index a0b79acfb..82b74fe5f 100644 --- a/CommunityToolkit.Diagnostics/ThrowHelper.Generic.cs +++ b/CommunityToolkit.Diagnostics/ThrowHelper.Generic.cs @@ -286,7 +286,7 @@ public static T ThrowCOMException(string? message, Exception? innerException) /// /// The type of expected result. /// The argument name. - /// The HRESULT of the errror to include. + /// The HRESULT of the error to include. /// Thrown with the specified parameters. /// This method always throws, so it actually never returns a value. [DoesNotReturn] @@ -339,7 +339,7 @@ public static T ThrowExternalException(string? message, Exception? innerExcep /// /// The type of expected result. /// The argument name. - /// The HRESULT of the errror to include. + /// The HRESULT of the error to include. /// Thrown with the specified parameters. /// This method always throws, so it actually never returns a value. [DoesNotReturn] diff --git a/CommunityToolkit.Diagnostics/ThrowHelper.cs b/CommunityToolkit.Diagnostics/ThrowHelper.cs index 6f0fb2f1a..848e80911 100644 --- a/CommunityToolkit.Diagnostics/ThrowHelper.cs +++ b/CommunityToolkit.Diagnostics/ThrowHelper.cs @@ -213,7 +213,7 @@ public static void ThrowArgumentOutOfRangeException(string? name, object? value, /// /// Throws a new . /// - /// Thrown with no paarameters. + /// Thrown with no parameters. [DoesNotReturn] public static void ThrowCOMException() { @@ -247,7 +247,7 @@ public static void ThrowCOMException(string? message, Exception? innerException) /// Throws a new . /// /// The argument name. - /// The HRESULT of the errror to include. + /// The HRESULT of the error to include. /// Thrown with the specified parameters. [DoesNotReturn] public static void ThrowCOMException(string? message, int error) @@ -292,7 +292,7 @@ public static void ThrowExternalException(string? message, Exception? innerExcep /// Throws a new . /// /// The argument name. - /// The HRESULT of the errror to include. + /// The HRESULT of the error to include. /// Thrown with the specified parameters. [DoesNotReturn] public static void ThrowExternalException(string? message, int error) diff --git a/CommunityToolkit.HighPerformance/Memory/Memory2D{T}.cs b/CommunityToolkit.HighPerformance/Memory/Memory2D{T}.cs index 2f3782664..493f6ac57 100644 --- a/CommunityToolkit.HighPerformance/Memory/Memory2D{T}.cs +++ b/CommunityToolkit.HighPerformance/Memory/Memory2D{T}.cs @@ -727,7 +727,7 @@ public Memory2D Slice(int row, int column, int height, int width) /// is disposed, enabling taking and using the memory's address. /// /// - /// An instance with nonprimitive (non-blittable) members cannot be pinned. + /// An instance with non-primitive (non-blittable) members cannot be pinned. /// /// A instance wrapping the pinned handle. public unsafe MemoryHandle Pin() diff --git a/CommunityToolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs b/CommunityToolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs index 3c3ad0ce3..62f9e36b7 100644 --- a/CommunityToolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs +++ b/CommunityToolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs @@ -740,7 +740,7 @@ public ReadOnlyMemory2D Slice(int row, int column, int height, int width) /// is disposed, enabling taking and using the memory's address. /// /// - /// An instance with nonprimitive (non-blittable) members cannot be pinned. + /// An instance with non-primitive (non-blittable) members cannot be pinned. /// /// A instance wrapping the pinned handle. public unsafe MemoryHandle Pin() diff --git a/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/Models/TypedConstantInfo.cs b/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/Models/TypedConstantInfo.cs index 18e774abb..df28d7a9e 100644 --- a/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/Models/TypedConstantInfo.cs +++ b/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/Models/TypedConstantInfo.cs @@ -15,7 +15,7 @@ namespace CommunityToolkit.Mvvm.SourceGenerators.ComponentModel.Models; /// /// A model representing a typed constant item. /// -/// This model is fully serializeable and comparable. +/// This model is fully serializable and comparable. internal abstract partial record TypedConstantInfo { /// diff --git a/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs b/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs index c4d673f5c..292e9e18a 100644 --- a/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs +++ b/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs @@ -65,7 +65,7 @@ internal static class Execute diagnostics = builder.ToImmutable(); // If the generated property would collide, skip generating it entirely. This makes sure that - // users only get the helpful diagnostic about the collsiion, and not the normal compiler error + // users only get the helpful diagnostic about the collision, and not the normal compiler error // about a definition for "Property" already existing on the target type, which might be confusing. return null; } diff --git a/CommunityToolkit.Mvvm.SourceGenerators/Extensions/ITypeSymbolExtensions.cs b/CommunityToolkit.Mvvm.SourceGenerators/Extensions/ITypeSymbolExtensions.cs index b2c44e721..eb96ae269 100644 --- a/CommunityToolkit.Mvvm.SourceGenerators/Extensions/ITypeSymbolExtensions.cs +++ b/CommunityToolkit.Mvvm.SourceGenerators/Extensions/ITypeSymbolExtensions.cs @@ -37,7 +37,7 @@ public static bool InheritsFromFullyQualifiedName(this ITypeSymbol typeSymbol, s } /// - /// Checks whether or not a given implements an interface with a specied name. + /// Checks whether or not a given implements an interface with a specified name. /// /// The target instance to check. /// The full name of the type to check for interface implementation. diff --git a/CommunityToolkit.Mvvm.SourceGenerators/Extensions/IncrementalValuesProviderExtensions.cs b/CommunityToolkit.Mvvm.SourceGenerators/Extensions/IncrementalValuesProviderExtensions.cs index 60ce2c992..85eff06e8 100644 --- a/CommunityToolkit.Mvvm.SourceGenerators/Extensions/IncrementalValuesProviderExtensions.cs +++ b/CommunityToolkit.Mvvm.SourceGenerators/Extensions/IncrementalValuesProviderExtensions.cs @@ -58,7 +58,7 @@ internal static class IncrementalValuesProviderExtensions } /// - /// Creates a new instance with a gven pair of comparers. + /// Creates a new instance with a given pair of comparers. /// /// The type of left items in each tuple. /// The type of right items in each tuple. @@ -75,7 +75,7 @@ internal static class IncrementalValuesProviderExtensions } /// - /// Creates a new instance with a gven pair of comparers. + /// Creates a new instance with a given pair of comparers. /// /// The type of first items in each tuple. /// The type of second items in each tuple. diff --git a/CommunityToolkit.Mvvm.SourceGenerators/Helpers/HashCode.cs b/CommunityToolkit.Mvvm.SourceGenerators/Helpers/HashCode.cs index 42299f40c..762cdd1f6 100644 --- a/CommunityToolkit.Mvvm.SourceGenerators/Helpers/HashCode.cs +++ b/CommunityToolkit.Mvvm.SourceGenerators/Helpers/HashCode.cs @@ -278,7 +278,7 @@ public static int Combine(T1 value1, T2 value2, T3 v /// The type of the fifth value to combine into the hash code. /// The type of the sixth value to combine into the hash code. /// The type of the seventh value to combine into the hash code. - /// The type of the eigth value to combine into the hash code. + /// The type of the eighth value to combine into the hash code. /// The first value to combine into the hash code. /// The second value to combine into the hash code. /// The third value to combine into the hash code. @@ -286,7 +286,7 @@ public static int Combine(T1 value1, T2 value2, T3 v /// The fifth value to combine into the hash code. /// The sixth value to combine into the hash code. /// The seventh value to combine into the hash code. - /// The eigth value to combine into the hash code. + /// The eighth value to combine into the hash code. /// The hash code that represents the values. public static int Combine(T1 value1, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, T7 value7, T8 value8) { diff --git a/CommunityToolkit.Mvvm.SourceGenerators/Input/ICommandGenerator.Execute.cs b/CommunityToolkit.Mvvm.SourceGenerators/Input/ICommandGenerator.Execute.cs index 12d47aead..a3a2b72ac 100644 --- a/CommunityToolkit.Mvvm.SourceGenerators/Input/ICommandGenerator.Execute.cs +++ b/CommunityToolkit.Mvvm.SourceGenerators/Input/ICommandGenerator.Execute.cs @@ -190,7 +190,7 @@ public static ImmutableArray GetSyntax(CommandInfo comm Parameter(Identifier(TriviaList(), SyntaxKind.UnderscoreToken, "_", "_", TriviaList()))) .WithExpressionBody(IdentifierName(commandInfo.CanExecuteMemberName!)), - // Create a method groupd expression, which will become: + // Create a method group expression, which will become: // // new (, ); CanExecuteExpressionType.MethodGroup => IdentifierName(commandInfo.CanExecuteMemberName!), diff --git a/CommunityToolkit.Mvvm/ComponentModel/Attributes/ObservableRecipientAttribute.cs b/CommunityToolkit.Mvvm/ComponentModel/Attributes/ObservableRecipientAttribute.cs index 005cf275b..9de47cb0b 100644 --- a/CommunityToolkit.Mvvm/ComponentModel/Attributes/ObservableRecipientAttribute.cs +++ b/CommunityToolkit.Mvvm/ComponentModel/Attributes/ObservableRecipientAttribute.cs @@ -29,7 +29,7 @@ namespace CommunityToolkit.Mvvm.ComponentModel; /// To avoid conflicts with other APIs in types where the new members are being generated, constructors are only generated when the annotated /// type doesn't have any explicit constructors being declared. If that is the case, the same constructors from /// are emitted, with the accessibility adapted to that of the annotated type. Otherwise, they are skipped, so the type being annotated has the -/// respondibility of properly initializing the property. Additionally, if the annotated type inherits +/// responsibility of properly initializing the property. Additionally, if the annotated type inherits /// from , the overloads will be skipped /// as well, as they would conflict with the methods. /// diff --git a/CommunityToolkit.Mvvm/ComponentModel/ObservableValidator.cs b/CommunityToolkit.Mvvm/ComponentModel/ObservableValidator.cs index 4984a52cc..1da65554e 100644 --- a/CommunityToolkit.Mvvm/ComponentModel/ObservableValidator.cs +++ b/CommunityToolkit.Mvvm/ComponentModel/ObservableValidator.cs @@ -31,7 +31,7 @@ public abstract class ObservableValidator : ObservableObject, INotifyDataErrorIn /// /// /// This is necessary because we want to reuse the same instance for all validations, but - /// with the same behavior with repsect to formatted names that new instances would have provided. The issue is that the + /// with the same behavior with respect to formatted names that new instances would have provided. The issue is that the /// property is not refreshed when we set , /// so we need to replicate the same logic to retrieve the right display name for properties to validate and update that /// property manually right before passing the context to and proceed with the normal functionality. @@ -44,7 +44,7 @@ public abstract class ObservableValidator : ObservableObject, INotifyDataErrorIn private static readonly PropertyChangedEventArgs HasErrorsChangedEventArgs = new(nameof(HasErrors)); /// - /// The instance currenty in use. + /// The instance currently in use. /// private readonly ValidationContext validationContext; diff --git a/CommunityToolkit.Mvvm/ComponentModel/__Internals/__TaskExtensions.cs b/CommunityToolkit.Mvvm/ComponentModel/__Internals/__TaskExtensions.cs index 62cf37654..c38a0f3e5 100644 --- a/CommunityToolkit.Mvvm/ComponentModel/__Internals/__TaskExtensions.cs +++ b/CommunityToolkit.Mvvm/ComponentModel/__Internals/__TaskExtensions.cs @@ -67,7 +67,7 @@ public Awaiter GetAwaiter() public readonly struct Awaiter : ICriticalNotifyCompletion { /// - /// The underlying inistance. + /// The underlying instance. /// private readonly TaskAwaiter taskAwaiter; diff --git a/CommunityToolkit.Mvvm/Input/IAsyncRelayCommandExtensions.cs b/CommunityToolkit.Mvvm/Input/IAsyncRelayCommandExtensions.cs index b9babb0bc..553835c6a 100644 --- a/CommunityToolkit.Mvvm/Input/IAsyncRelayCommandExtensions.cs +++ b/CommunityToolkit.Mvvm/Input/IAsyncRelayCommandExtensions.cs @@ -18,7 +18,7 @@ public static class IAsyncRelayCommandExtensions /// /// The input instance to create a cancellation command for. /// An instance that can be used to monitor and signal cancellation for . - /// The reeturned instance is not guaranteed to be unique across multiple invocations with the same arguments. + /// The returned instance is not guaranteed to be unique across multiple invocations with the same arguments. /// Thrown if is . public static ICommand CreateCancelCommand(this IAsyncRelayCommand command) { diff --git a/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs b/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs index e67cb7908..406e26926 100644 --- a/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs +++ b/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs @@ -111,7 +111,7 @@ public static void RegisterAll(this IMessenger messenger, object recipient) } #pragma warning restore IL2026 - // Try to get the cached delegate, if the generatos has run correctly + // Try to get the cached delegate, if the generator has run correctly Action? registrationAction = DiscoveredRecipients.RegistrationMethods.GetValue( recipient.GetType(), static t => LoadRegistrationMethodsForType(t)); @@ -200,7 +200,7 @@ where interfaceType.IsGenericType && // We want a single compiled LINQ expression that executes the registration for all // the declared message types in the input type. To do so, we create a block with the - // unrolled invocations for the indivudual message registration (for each IRecipient). + // unrolled invocations for the individual message registration (for each IRecipient). // The code below will generate the following block expression: // =============================================================================== // { diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_MemoryExtensions.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_MemoryExtensions.cs index 2893990c5..3c33ee981 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_MemoryExtensions.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_MemoryExtensions.cs @@ -82,7 +82,7 @@ public void Test_MemoryExtensions_FromArray_CastFromByte() Span spanOfBytes = memoryOfBytes.Span; Span spanOfFloats = memoryOfFloats.Span; - // We also need to check that the Span returned from the caast memory + // We also need to check that the Span returned from the cast memory // actually has the initial reference pointing to the same location as // the one to the same item in the span from the original memory. Assert.AreEqual(memoryOfFloats.Length, spanOfFloats.Length); diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Helpers/Test_ParallelHelper.ForEach.Ref2D.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Helpers/Test_ParallelHelper.ForEach.Ref2D.cs index 7c68b47b2..c8c847487 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Helpers/Test_ParallelHelper.ForEach.Ref2D.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Helpers/Test_ParallelHelper.ForEach.Ref2D.cs @@ -41,7 +41,7 @@ public void Test_ParallelHelper_ForEach_Ref2D( Assert.AreEqual(memory.Height, height); Assert.AreEqual(memory.Width, width); - // Do the same computation in paralellel, then compare the two arrays + // Do the same computation in parallel, then compare the two arrays ParallelHelper.ForEach(memory, new Multiplier(397)); CollectionAssert.AreEqual(data, copy); diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Memory2D{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Memory2D{T}.cs index 527504ef4..028a21628 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Memory2D{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Memory2D{T}.cs @@ -171,7 +171,7 @@ public void Test_Memory2DT_Array3DConstructor_2() // Same as above, but we also slice the target layer in the 3D array. In this case we're creating // a Memory instance from a slice in the layer at depth 1 in our 3D array, and with an area - // starting at coorsinates (0, 1), with a height of 2 and width of 2. So we want to wrap the + // starting at coordinates (0, 1), with a height of 2 and width of 2. So we want to wrap the // square with items [20, 30, 50, 60] in the second layer of the 3D array above. Memory2D memory2d = new(array, 1, 0, 1, 2, 2); @@ -475,7 +475,7 @@ public void Test_Memory2DT_Equals() [TestMethod] public void Test_Memory2DT_GetHashCode() { - // An emoty Memory2D has just 0 as the hashcode + // An empty Memory2D has just 0 as the hashcode Assert.AreEqual(Memory2D.Empty.GetHashCode(), 0); int[,] array = diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Span2D{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Span2D{T}.cs index 4aa24d242..05f0946e6 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Span2D{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Span2D{T}.cs @@ -355,7 +355,7 @@ public void Test_Span2DT_CopyTo_Empty() int[] target = new int[0]; - // Copying an emoty Span2D to an empty array is just a no-op + // Copying an empty Span2D to an empty array is just a no-op span2d.CopyTo(target); } diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs index a4db5b420..4bbaab6bb 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs @@ -19,7 +19,7 @@ public void Test_IBufferWriterStream_Lifecycle() { ArrayPoolBufferWriter writer = new(); - // Get a stream from a buffer writer aand validate that it can only be written to. + // Get a stream from a buffer writer and validate that it can only be written to. // This is to mirror the same functionality as the IBufferWriter interface. Stream stream = ((IBufferWriter)writer).AsStream(); diff --git a/tests/CommunityToolkit.Mvvm.Internals.UnitTests/Test_Messenger.cs b/tests/CommunityToolkit.Mvvm.Internals.UnitTests/Test_Messenger.cs index 15fad74f2..22fd1dd68 100644 --- a/tests/CommunityToolkit.Mvvm.Internals.UnitTests/Test_Messenger.cs +++ b/tests/CommunityToolkit.Mvvm.Internals.UnitTests/Test_Messenger.cs @@ -221,7 +221,7 @@ public void Receive(MessageB message) } // We also add the ICloneable interface to test that the message - // interfaces are all handled correctly even when inteleaved + // interfaces are all handled correctly even when interleaved // by other unrelated interfaces in the type declaration. public object Clone() => throw new NotImplementedException(); } diff --git a/tests/CommunityToolkit.Mvvm.UnitTests/Test_Messenger.cs b/tests/CommunityToolkit.Mvvm.UnitTests/Test_Messenger.cs index ecc3c5545..897cd0eae 100644 --- a/tests/CommunityToolkit.Mvvm.UnitTests/Test_Messenger.cs +++ b/tests/CommunityToolkit.Mvvm.UnitTests/Test_Messenger.cs @@ -1024,7 +1024,7 @@ public void Receive(MessageB message) } // We also add the ICloneable interface to test that the message - // interfaces are all handled correctly even when inteleaved + // interfaces are all handled correctly even when interleaved // by other unrelated interfaces in the type declaration. public object Clone() => throw new NotImplementedException(); } diff --git a/tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservablePropertyAttribute.cs b/tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservablePropertyAttribute.cs index cfde4fd1f..72cf96d3a 100644 --- a/tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservablePropertyAttribute.cs +++ b/tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservablePropertyAttribute.cs @@ -354,10 +354,10 @@ public void Test_OnPropertyChangingAndChangedPartialMethodWithAdditionalValidati // The actual validation is performed inside the model itself. // This test validates that the order with which methods/events are generated is: // - OnChanging(value); - // - OnProperyChanging(); + // - OnPropertyChanging(); // - field = value; // - OnChanged(value); - // - OnProperyChanged(); + // - OnPropertyChanged(); model.Name = "B"; Assert.AreEqual("B", model.Name);