diff --git a/CommunityToolkit.Diagnostics/Extensions/TypeExtensions.cs b/CommunityToolkit.Diagnostics/Extensions/TypeExtensions.cs
index f7e2a4dd..3aad6fee 100644
--- a/CommunityToolkit.Diagnostics/Extensions/TypeExtensions.cs
+++ b/CommunityToolkit.Diagnostics/Extensions/TypeExtensions.cs
@@ -68,7 +68,7 @@ public static class TypeExtensions
}
// 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 a0b79acf..82b74fe5 100644
--- a/CommunityToolkit.Diagnostics/ThrowHelper.Generic.cs
+++ b/CommunityToolkit.Diagnostics/ThrowHelper.Generic.cs
@@ -286,7 +286,7 @@ partial class ThrowHelper
///
/// 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 @@ partial class ThrowHelper
///
/// 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 6f0fb2f1..848e8091 100644
--- a/CommunityToolkit.Diagnostics/ThrowHelper.cs
+++ b/CommunityToolkit.Diagnostics/ThrowHelper.cs
@@ -213,7 +213,7 @@ public static partial class ThrowHelper
///
/// Throws a new .
///
- /// Thrown with no paarameters.
+ /// Thrown with no parameters.
[DoesNotReturn]
public static void ThrowCOMException()
{
@@ -247,7 +247,7 @@ public static partial class ThrowHelper
/// 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 partial class ThrowHelper
/// 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 2f378266..493f6ac5 100644
--- a/CommunityToolkit.HighPerformance/Memory/Memory2D{T}.cs
+++ b/CommunityToolkit.HighPerformance/Memory/Memory2D{T}.cs
@@ -727,7 +727,7 @@ public readonly struct Memory2D : IEquatable>
/// 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 3c3ad0ce..62f9e36b 100644
--- a/CommunityToolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs
+++ b/CommunityToolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs
@@ -740,7 +740,7 @@ public readonly struct ReadOnlyMemory2D : IEquatable>
/// 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 18e774ab..df28d7a9 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 ed52efe5..f8fb4a70 100644
--- a/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs
+++ b/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs
@@ -66,7 +66,7 @@ partial class ObservablePropertyGenerator
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 d1762224..50e8c8ea 100644
--- a/CommunityToolkit.Mvvm.SourceGenerators/Extensions/ITypeSymbolExtensions.cs
+++ b/CommunityToolkit.Mvvm.SourceGenerators/Extensions/ITypeSymbolExtensions.cs
@@ -56,7 +56,7 @@ internal static class ITypeSymbolExtensions
}
///
- /// 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 60ce2c99..85eff06e 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 42299f40..762cdd1f 100644
--- a/CommunityToolkit.Mvvm.SourceGenerators/Helpers/HashCode.cs
+++ b/CommunityToolkit.Mvvm.SourceGenerators/Helpers/HashCode.cs
@@ -278,7 +278,7 @@ internal struct HashCode
/// 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 @@ internal struct HashCode
/// 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 33bc36b5..30c81583 100644
--- a/CommunityToolkit.Mvvm.SourceGenerators/Input/ICommandGenerator.Execute.cs
+++ b/CommunityToolkit.Mvvm.SourceGenerators/Input/ICommandGenerator.Execute.cs
@@ -191,7 +191,7 @@ partial class ICommandGenerator
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 3aee6cc3..8a6e3eb6 100644
--- a/CommunityToolkit.Mvvm/ComponentModel/Attributes/ObservableRecipientAttribute.cs
+++ b/CommunityToolkit.Mvvm/ComponentModel/Attributes/ObservableRecipientAttribute.cs
@@ -28,7 +28,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 72d92c7b..2a0db51a 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 62cf3765..c38a0f3e 100644
--- a/CommunityToolkit.Mvvm/ComponentModel/__Internals/__TaskExtensions.cs
+++ b/CommunityToolkit.Mvvm/ComponentModel/__Internals/__TaskExtensions.cs
@@ -67,7 +67,7 @@ public static class __TaskExtensions
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 b9babb0b..553835c6 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 e67cb790..406e2692 100644
--- a/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs
+++ b/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs
@@ -111,7 +111,7 @@ public static class IMessengerExtensions
}
#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 @@ public static class IMessengerExtensions
// 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 2893990c..3c33ee98 100644
--- a/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_MemoryExtensions.cs
+++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_MemoryExtensions.cs
@@ -82,7 +82,7 @@ public class Test_MemoryExtensions
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 7c68b47b..c8c84748 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 partial class Test_ParallelHelper
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 527504ef..028a2162 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 class Test_Memory2DT
// 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 class Test_Memory2DT
[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 4aa24d24..05f0946e 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 class Test_Span2DT
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 a4db5b42..4bbaab6b 100644
--- a/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs
+++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs
@@ -19,7 +19,7 @@ public class Test_IBufferWriterStream
{
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 15fad74f..22fd1dd6 100644
--- a/tests/CommunityToolkit.Mvvm.Internals.UnitTests/Test_Messenger.cs
+++ b/tests/CommunityToolkit.Mvvm.Internals.UnitTests/Test_Messenger.cs
@@ -221,7 +221,7 @@ public partial class Test_Messenger
}
// 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 a41197b3..16f5c7af 100644
--- a/tests/CommunityToolkit.Mvvm.UnitTests/Test_Messenger.cs
+++ b/tests/CommunityToolkit.Mvvm.UnitTests/Test_Messenger.cs
@@ -1060,7 +1060,7 @@ public partial class Test_Messenger
}
// 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 d731638f..cb110b25 100644
--- a/tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservablePropertyAttribute.cs
+++ b/tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservablePropertyAttribute.cs
@@ -355,10 +355,10 @@ public partial class Test_ObservablePropertyAttribute
// 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);