Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CommunityToolkit.HighPerformance/Buffers/StringPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static void FindFactors(int size, int factor, out uint x, out uint y)
// that we consider acceptable, and pick the best results produced.
// The ratio between maps influences the number of objects being allocated,
// as well as the multithreading performance when locking on maps.
// We still want to contraint this number to avoid situations where we
// We still want to constraint this number to avoid situations where we
// have a way too high number of maps compared to total size.
FindFactors(minimumSize, 2, out uint x2, out uint y2);
FindFactors(minimumSize, 3, out uint x3, out uint y3);
Expand Down Expand Up @@ -113,7 +113,7 @@ static void FindFactors(int size, int factor, out uint x, out uint y)

// We preallocate the maps in advance, since each bucket only contains the
// array field, which is not preinitialized, so the allocations are minimal.
// This lets us lock on each individual maps when retrieving a string instance.
// This lets us lock on each individual map when retrieving a string instance.
foreach (ref FixedSizePriorityMap map in span)
{
map = new FixedSizePriorityMap((int)y2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public static CompilationUnitSyntax GetSyntax(ValidationInfo validationInfo)
// full runtime type safety (as a safe cast is used to validate the input argument), and with less reflection needed.
// Note that we're deliberately creating a new delegate instance here and not using code that could see the C# compiler
// create a static class to cache a reusable delegate, because each generated method will only be called at most once,
// as the returned delegate will be cached by the MVVM Toolkit itself. So this ensures the the produced code is minimal,
// as the returned delegate will be cached by the MVVM Toolkit itself. So this ensures the produced code is minimal,
// and that there will be no unnecessary static fields and objects being created and possibly never collected.
// This code will produce a syntax tree as follows:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public sealed class INotifyPropertyChangedAttribute : Attribute
{
/// <summary>
/// Gets or sets a value indicating whether or not to also generate all the additional helper methods that are found
/// in <see cref="ObservableObject"/> as well (eg. <see cref="ObservableObject.SetProperty{T}(ref T, T, string?)"/>.
/// in <see cref="ObservableObject"/> as well (eg. <see cref="ObservableObject.SetProperty{T}(ref T, T, string?)"/>).
/// If set to <see langword="false"/>, only the <see cref="INotifyPropertyChanged.PropertyChanged"/> event and
/// the two <see cref="ObservableObject.OnPropertyChanged(PropertyChangedEventArgs)"/> overloads will be generated.
/// The default value is <see langword="true"/>.
Expand Down
2 changes: 1 addition & 1 deletion src/CommunityToolkit.Mvvm/Messaging/IMessenger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace CommunityToolkit.Mvvm.Messaging;
/// <code>
/// public sealed class LoginCompletedMessage { }
/// </code>
/// Then, register your a recipient for this message:
/// Then, register a recipient for this message:
/// <code>
/// Messenger.Default.Register&lt;MyRecipientType, LoginCompletedMessage&gt;(this, (r, m) =>
/// {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public static TMessage Send<TMessage>(this IMessenger messenger, TMessage messag
/// <typeparam name="TToken">The type of token to identify what channel to use to send the message.</typeparam>
/// <param name="messenger">The <see cref="IMessenger"/> instance to use to send the message.</param>
/// <param name="token">The token indicating what channel to use.</param>
/// <returns>The message that has been sen.</returns>
/// <returns>The message that has been sent.</returns>
/// <remarks>
/// This method will automatically create a new <typeparamref name="TMessage"/> instance
/// just like <see cref="Send{TMessage}(IMessenger)"/>, and then send it to the right recipients.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public bool MoveNext()
while ((uint)this.index < (uint)this.count)
{
// We need to preemptively increment the current index so that we still correctly keep track
// of the current position in the dictionary even if the users doesn't access any of the
// of the current position in the dictionary even if the users don't access any of the
// available properties in the enumerator. As this is a possibility, we can't rely on one of
// them to increment the index before MoveNext is invoked again. We ditch the standard enumerator
// API surface here to expose the Key/Value properties directly and minimize the memory copies.
Expand Down