From 73c52f9a8cee3f77d55d05e780edfd32fd565d6b Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 2 Aug 2020 19:18:48 +1000 Subject: [PATCH 1/2] fix some spelling --- Microsoft.Toolkit.HighPerformance/Box{T}.cs | 2 +- .../Extensions/ArrayExtensions.2D.cs | 4 +-- .../Extensions/MemoryExtensions.cs | 2 +- .../Extensions/ObjectExtensions.cs | 4 +-- .../Extensions/ReadOnlyMemoryExtensions.cs | 2 +- .../Extensions/ReadOnlySpanExtensions.cs | 2 +- .../ReadOnlyRef{T}.cs | 4 +-- Microsoft.Toolkit.HighPerformance/Ref{T}.cs | 2 +- .../ComponentModel/ObservableObject.cs | 4 +-- .../ComponentModel/ObservableRecipient.cs | 2 +- .../DependencyInjection/Ioc.cs | 2 +- .../Input/Interfaces/IAsyncRelayCommand{T}.cs | 2 +- Microsoft.Toolkit.Mvvm/Input/RelayCommand.cs | 2 +- .../Input/RelayCommand{T}.cs | 2 +- .../Messages/PropertyChangedMessage{T}.cs | 2 +- Microsoft.Toolkit.Mvvm/Messaging/Messenger.cs | 2 +- .../Messaging/MessengerExtensions.cs | 6 ++-- .../Markdown/Blocks/ListBlock.cs | 10 +++---- .../Markdown/Blocks/TableBlock.cs | 2 +- .../Markdown/Blocks/YamlHeaderBlock.cs | 2 +- .../Markdown/Helpers/Common.cs | 4 +-- .../PlatformSpecificAnalyzerCS.cs | 4 +-- .../PlatformSpecificAnalyzerVB.cs | 2 +- .../PlatformSpecificFixerCS.cs | 2 +- .../PlatformSpecificFixerVB.cs | 2 +- .../Controls/SampleAppMarkdownRenderer.cs | 30 +++++++++---------- .../Data/DataGridDataItem.cs | 2 +- .../Models/Sample.cs | 22 +++++++------- .../Helpers/NotifyTaskCompletion.cs | 2 +- .../IIncrementalSource.cs | 2 +- 30 files changed, 66 insertions(+), 66 deletions(-) diff --git a/Microsoft.Toolkit.HighPerformance/Box{T}.cs b/Microsoft.Toolkit.HighPerformance/Box{T}.cs index d6c72753453..52aaccf498d 100644 --- a/Microsoft.Toolkit.HighPerformance/Box{T}.cs +++ b/Microsoft.Toolkit.HighPerformance/Box{T}.cs @@ -87,7 +87,7 @@ public static Box GetFrom(object obj) /// The input instance, representing a boxed value. /// A reference pointing to . /// - /// This method doesn't check the actual type of , so it is responsability of the caller + /// This method doesn't check the actual type of , so it is responsibility of the caller /// to ensure it actually represents a boxed value and not some other instance. /// [Pure] diff --git a/Microsoft.Toolkit.HighPerformance/Extensions/ArrayExtensions.2D.cs b/Microsoft.Toolkit.HighPerformance/Extensions/ArrayExtensions.2D.cs index 965c54b4aea..157f36d61c1 100644 --- a/Microsoft.Toolkit.HighPerformance/Extensions/ArrayExtensions.2D.cs +++ b/Microsoft.Toolkit.HighPerformance/Extensions/ArrayExtensions.2D.cs @@ -61,7 +61,7 @@ public static ref T DangerousGetReference(this T[,] array) /// /// This method doesn't do any bounds checks, therefore it is responsibility of the caller to ensure the /// and parameters are valid. Furthermore, this extension will ignore the lower bounds for the input - /// array, and will just assume that the input index is 0-based. It is responsability of the caller to adjust the input + /// array, and will just assume that the input index is 0-based. It is responsibility of the caller to adjust the input /// indices to account for the actual lower bounds, if the input array has either axis not starting at 0. /// [Pure] @@ -234,7 +234,7 @@ public static Array2DColumnEnumerable GetColumn(this T[,] array, int colum #if SPAN_RUNTIME_SUPPORT /// - /// Cretes a new over an input 2D array. + /// Creates a new over an input 2D array. /// /// The type of elements in the input 2D array instance. /// The input 2D array instance. diff --git a/Microsoft.Toolkit.HighPerformance/Extensions/MemoryExtensions.cs b/Microsoft.Toolkit.HighPerformance/Extensions/MemoryExtensions.cs index bd7acf00442..8c1e053a186 100644 --- a/Microsoft.Toolkit.HighPerformance/Extensions/MemoryExtensions.cs +++ b/Microsoft.Toolkit.HighPerformance/Extensions/MemoryExtensions.cs @@ -22,7 +22,7 @@ public static class MemoryExtensions /// A wrapping the data within . /// /// Since this method only receives a instance, which does not track - /// the lifetime of its underlying buffer, it is responsability of the caller to manage that. + /// the lifetime of its underlying buffer, it is responsibility of the caller to manage that. /// In particular, the caller must ensure that the target buffer is not disposed as long /// as the returned is in use, to avoid unexpected issues. /// diff --git a/Microsoft.Toolkit.HighPerformance/Extensions/ObjectExtensions.cs b/Microsoft.Toolkit.HighPerformance/Extensions/ObjectExtensions.cs index 79cd388376e..c94675ecdee 100644 --- a/Microsoft.Toolkit.HighPerformance/Extensions/ObjectExtensions.cs +++ b/Microsoft.Toolkit.HighPerformance/Extensions/ObjectExtensions.cs @@ -24,7 +24,7 @@ public static class ObjectExtensions /// The value representing the offset to the target field from the start of the object data /// for the parameter . The offset is in relation to the first usable byte after the method table. /// - /// The input parameters are not validated, and it's responsability of the caller to ensure that + /// The input parameters are not validated, and it's responsibility of the caller to ensure that /// the reference is actually pointing to a memory location within . /// [Pure] @@ -46,7 +46,7 @@ public static IntPtr DangerousGetObjectDataByteOffset(this object obj, ref T /// The input byte offset for the reference to retrieve. /// A reference at a specified offset within . /// - /// None of the input arguments is validated, and it is responsability of the caller to ensure they are valid. + /// None of the input arguments is validated, and it is responsibility of the caller to ensure they are valid. /// In particular, using an invalid offset might cause the retrieved reference to be misaligned with the /// desired data, which would break the type system. Or, if the offset causes the retrieved reference to point /// to a memory location outside of the input instance, that might lead to runtime crashes. diff --git a/Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlyMemoryExtensions.cs b/Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlyMemoryExtensions.cs index de5f7fd5eac..46101e3db89 100644 --- a/Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlyMemoryExtensions.cs +++ b/Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlyMemoryExtensions.cs @@ -22,7 +22,7 @@ public static class ReadOnlyMemoryExtensions /// A wrapping the data within . /// /// Since this method only receives a instance, which does not track - /// the lifetime of its underlying buffer, it is responsability of the caller to manage that. + /// the lifetime of its underlying buffer, it is responsibility of the caller to manage that. /// In particular, the caller must ensure that the target buffer is not disposed as long /// as the returned is in use, to avoid unexpected issues. /// diff --git a/Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlySpanExtensions.cs b/Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlySpanExtensions.cs index 4d3f2ad9c93..cf2be137c38 100644 --- a/Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlySpanExtensions.cs +++ b/Microsoft.Toolkit.HighPerformance/Extensions/ReadOnlySpanExtensions.cs @@ -279,7 +279,7 @@ public static ReadOnlySpanTokenizer Tokenize(this ReadOnlySpan span, T /// even long sequences of values. For the reference implementation, see: . /// For details on the used constants, see the details provided in this StackOverflow answer (as well as the accepted one): /// . - /// Additionally, a comparison between some common hashing algoriths can be found in the reply to this StackExchange question: + /// Additionally, a comparison between some common hashing algorithms can be found in the reply to this StackExchange question: /// . /// Note that the exact implementation is slightly different in this method when it is not called on a sequence of /// values: in this case the method will be invoked for each value in diff --git a/Microsoft.Toolkit.HighPerformance/ReadOnlyRef{T}.cs b/Microsoft.Toolkit.HighPerformance/ReadOnlyRef{T}.cs index 18d7d986f01..c7156dbc63b 100644 --- a/Microsoft.Toolkit.HighPerformance/ReadOnlyRef{T}.cs +++ b/Microsoft.Toolkit.HighPerformance/ReadOnlyRef{T}.cs @@ -70,7 +70,7 @@ public static implicit operator ReadOnlyRef(Ref reference) /// /// The owner to create a portable reference for. /// The target offset within for the target reference. - /// The parameter is not validated, and it's responsability of the caller to ensure it's valid. + /// The parameter is not validated, and it's responsibility of the caller to ensure it's valid. [MethodImpl(MethodImplOptions.AggressiveInlining)] private ReadOnlyRef(object owner, IntPtr offset) { @@ -83,7 +83,7 @@ private ReadOnlyRef(object owner, IntPtr offset) /// /// The owner to create a portable reference for. /// The target reference to point to (it must be within ). - /// The parameter is not validated, and it's responsability of the caller to ensure it's valid. + /// The parameter is not validated, and it's responsibility of the caller to ensure it's valid. [MethodImpl(MethodImplOptions.AggressiveInlining)] public ReadOnlyRef(object owner, in T value) { diff --git a/Microsoft.Toolkit.HighPerformance/Ref{T}.cs b/Microsoft.Toolkit.HighPerformance/Ref{T}.cs index 61cb45d82cf..cc642ea48dc 100644 --- a/Microsoft.Toolkit.HighPerformance/Ref{T}.cs +++ b/Microsoft.Toolkit.HighPerformance/Ref{T}.cs @@ -62,7 +62,7 @@ public ref T Value /// /// The owner to create a portable reference for. /// The target reference to point to (it must be within ). - /// The parameter is not validated, and it's responsability of the caller to ensure it's valid. + /// The parameter is not validated, and it's responsibility of the caller to ensure it's valid. [MethodImpl(MethodImplOptions.AggressiveInlining)] public Ref(object owner, ref T value) { diff --git a/Microsoft.Toolkit.Mvvm/ComponentModel/ObservableObject.cs b/Microsoft.Toolkit.Mvvm/ComponentModel/ObservableObject.cs index 564e90b8bc3..aab9e4d409a 100644 --- a/Microsoft.Toolkit.Mvvm/ComponentModel/ObservableObject.cs +++ b/Microsoft.Toolkit.Mvvm/ComponentModel/ObservableObject.cs @@ -4,7 +4,7 @@ #pragma warning disable SA1512 -// This file is inspired from the MvvmLight libray (lbugnion/mvvmlight), +// This file is inspired from the MvvmLight library (lbugnion/MvvmLight), // more info in ThirdPartyNotices.txt in the root of the project. using System; @@ -164,7 +164,7 @@ protected bool SetProperty(T oldValue, T newValue, IEqualityComparer compa /// } /// /// We can then use a property to wrap instances of this type into our observable model (which supports - /// notifications), injecting the notification to theproperties of that model, like so: + /// notifications), injecting the notification to the properties of that model, like so: /// /// public class BindablePerson : ObservableObject /// { diff --git a/Microsoft.Toolkit.Mvvm/ComponentModel/ObservableRecipient.cs b/Microsoft.Toolkit.Mvvm/ComponentModel/ObservableRecipient.cs index 6b4bdd401e9..d5b58b52a5b 100644 --- a/Microsoft.Toolkit.Mvvm/ComponentModel/ObservableRecipient.cs +++ b/Microsoft.Toolkit.Mvvm/ComponentModel/ObservableRecipient.cs @@ -4,7 +4,7 @@ #pragma warning disable SA1512 -// This file is inspired from the MvvmLight libray (lbugnion/mvvmlight), +// This file is inspired from the MvvmLight library (lbugnion/MvvmLight), // more info in ThirdPartyNotices.txt in the root of the project. using System; diff --git a/Microsoft.Toolkit.Mvvm/DependencyInjection/Ioc.cs b/Microsoft.Toolkit.Mvvm/DependencyInjection/Ioc.cs index e63e7811bda..facc027ae6e 100644 --- a/Microsoft.Toolkit.Mvvm/DependencyInjection/Ioc.cs +++ b/Microsoft.Toolkit.Mvvm/DependencyInjection/Ioc.cs @@ -63,7 +63,7 @@ public sealed class Ioc : IServiceProvider // data elements no larger than the natural word size [...] shall be properly aligned. // Object references shall be treated as though they are stored in the native word size." // The field being accessed here is of native int size (reference type), and is only ever accessed - // directly and atomically by a compare exhange instruction (see below), or here. We can therefore + // directly and atomically by a compare exchange instruction (see below), or here. We can therefore // assume this read is thread safe with respect to accesses to this property or to invocations to one // of the available configuration methods. So we can just read the field directly and make the necessary // check with our local copy, without the need of paying the locking overhead from this get accessor. diff --git a/Microsoft.Toolkit.Mvvm/Input/Interfaces/IAsyncRelayCommand{T}.cs b/Microsoft.Toolkit.Mvvm/Input/Interfaces/IAsyncRelayCommand{T}.cs index 789febb71df..843547a01c8 100644 --- a/Microsoft.Toolkit.Mvvm/Input/Interfaces/IAsyncRelayCommand{T}.cs +++ b/Microsoft.Toolkit.Mvvm/Input/Interfaces/IAsyncRelayCommand{T}.cs @@ -10,7 +10,7 @@ namespace Microsoft.Toolkit.Mvvm.Input /// A generic interface representing a more specific version of . /// /// The type used as argument for the interface methods. - /// This interface is needed to solve the diamong problem with base classes. + /// This interface is needed to solve the diamond problem with base classes. public interface IAsyncRelayCommand : IAsyncRelayCommand, IRelayCommand { /// diff --git a/Microsoft.Toolkit.Mvvm/Input/RelayCommand.cs b/Microsoft.Toolkit.Mvvm/Input/RelayCommand.cs index 2dc82713118..a702f2327c1 100644 --- a/Microsoft.Toolkit.Mvvm/Input/RelayCommand.cs +++ b/Microsoft.Toolkit.Mvvm/Input/RelayCommand.cs @@ -4,7 +4,7 @@ #pragma warning disable SA1512 -// This file is inspired from the MvvmLight libray (lbugnion/mvvmlight), +// This file is inspired from the MvvmLight library (lbugnion/MvvmLight), // more info in ThirdPartyNotices.txt in the root of the project. using System; diff --git a/Microsoft.Toolkit.Mvvm/Input/RelayCommand{T}.cs b/Microsoft.Toolkit.Mvvm/Input/RelayCommand{T}.cs index 11ad5ba5853..0288e8dbb52 100644 --- a/Microsoft.Toolkit.Mvvm/Input/RelayCommand{T}.cs +++ b/Microsoft.Toolkit.Mvvm/Input/RelayCommand{T}.cs @@ -4,7 +4,7 @@ #pragma warning disable SA1512 -// This file is inspired from the MvvmLight libray (lbugnion/mvvmlight), +// This file is inspired from the MvvmLight library (lbugnion/MvvmLight), // more info in ThirdPartyNotices.txt in the root of the project. using System; diff --git a/Microsoft.Toolkit.Mvvm/Messaging/Messages/PropertyChangedMessage{T}.cs b/Microsoft.Toolkit.Mvvm/Messaging/Messages/PropertyChangedMessage{T}.cs index 27ae2496668..075ed306a00 100644 --- a/Microsoft.Toolkit.Mvvm/Messaging/Messages/PropertyChangedMessage{T}.cs +++ b/Microsoft.Toolkit.Mvvm/Messaging/Messages/PropertyChangedMessage{T}.cs @@ -4,7 +4,7 @@ #pragma warning disable SA1512 -// This file is inspired from the MvvmLight libray (lbugnion/mvvmlight), +// This file is inspired from the MvvmLight library (lbugnion/MvvmLight), // more info in ThirdPartyNotices.txt in the root of the project. namespace Microsoft.Toolkit.Mvvm.Messaging.Messages diff --git a/Microsoft.Toolkit.Mvvm/Messaging/Messenger.cs b/Microsoft.Toolkit.Mvvm/Messaging/Messenger.cs index 558497a2b9b..f8e817e0d7e 100644 --- a/Microsoft.Toolkit.Mvvm/Messaging/Messenger.cs +++ b/Microsoft.Toolkit.Mvvm/Messaging/Messenger.cs @@ -269,7 +269,7 @@ public void UnregisterAll(object recipient, TToken token) { // We don't need whether or not the map contains the recipient, as the // sequence of maps has already been copied from the set containing all - // the mappings for the target recipiets: it is guaranteed to be here. + // the mappings for the target recipients: it is guaranteed to be here. IDictionarySlim holder = map[key]; // Try to remove the registered handler for the input token, diff --git a/Microsoft.Toolkit.Mvvm/Messaging/MessengerExtensions.cs b/Microsoft.Toolkit.Mvvm/Messaging/MessengerExtensions.cs index 427194be456..ea07f57ac85 100644 --- a/Microsoft.Toolkit.Mvvm/Messaging/MessengerExtensions.cs +++ b/Microsoft.Toolkit.Mvvm/Messaging/MessengerExtensions.cs @@ -17,7 +17,7 @@ namespace Microsoft.Toolkit.Mvvm.Messaging public static partial class MessengerExtensions { /// - /// The instance assocuated with . + /// The instance associated with . /// private static readonly MethodInfo RegisterIRecipientMethodInfo; @@ -111,13 +111,13 @@ where interfaceType.IsGenericType && interfaceType.GetGenericTypeDefinition() == typeof(IRecipient<>) let messageType = interfaceType.GenericTypeArguments[0] let registrationMethod = RegisterIRecipientMethodInfo.MakeGenericMethod(messageType, typeof(TToken)) - let registrationAction = GetRegisterationAction(type, registrationMethod) + let registrationAction = GetRegistrationAction(type, registrationMethod) select registrationAction).ToArray(); } // Helper method to build and compile an expression tree to a message handler to use for the registration // This is used to reduce the overhead of repeated calls to MethodInfo.Invoke (which is over 10 times slower). - static Action GetRegisterationAction(Type type, MethodInfo methodInfo) + static Action GetRegistrationAction(Type type, MethodInfo methodInfo) { // Input parameters (IMessenger instance, non-generic recipient, token) ParameterExpression diff --git a/Microsoft.Toolkit.Parsers/Markdown/Blocks/ListBlock.cs b/Microsoft.Toolkit.Parsers/Markdown/Blocks/ListBlock.cs index f1e90403d3a..631d18c962a 100644 --- a/Microsoft.Toolkit.Parsers/Markdown/Blocks/ListBlock.cs +++ b/Microsoft.Toolkit.Parsers/Markdown/Blocks/ListBlock.cs @@ -149,7 +149,7 @@ internal static ListBlock Parse(string markdown, int start, int maxEnd, int quot } russianDollIndex = Math.Min(russianDollIndex, (spaceCount - 1) / 4); - int linestart = Math.Min(lineInfo.FirstNonWhitespaceChar, lineInfo.StartOfLine + ((russianDollIndex + 1) * 4)); + int lineStart = Math.Min(lineInfo.FirstNonWhitespaceChar, lineInfo.StartOfLine + ((russianDollIndex + 1) * 4)); // 0 spaces = end of the list. // 1-4 spaces = first level. @@ -177,20 +177,20 @@ internal static ListBlock Parse(string markdown, int start, int maxEnd, int quot builder.Builder.AppendLine(); } - AppendTextToListItem(currentListItem, markdown, linestart, lineInfo.EndOfLine); + AppendTextToListItem(currentListItem, markdown, lineStart, lineInfo.EndOfLine); } else { // Inline text. Ignores the 4 spaces that are used to continue the list. - AppendTextToListItem(currentListItem, markdown, linestart, lineInfo.EndOfLine, true); + AppendTextToListItem(currentListItem, markdown, lineStart, lineInfo.EndOfLine, true); } } // Check for Closing Code Blocks. if (currentListItem.Blocks.Last() is ListItemBuilder currentBlock) { - var blockmatchcount = Regex.Matches(currentBlock.Builder.ToString(), "```").Count; - if (blockmatchcount > 0 && blockmatchcount % 2 != 0) + var blockMatchCount = Regex.Matches(currentBlock.Builder.ToString(), "```").Count; + if (blockMatchCount > 0 && blockMatchCount % 2 != 0) { inCodeBlock = true; } diff --git a/Microsoft.Toolkit.Parsers/Markdown/Blocks/TableBlock.cs b/Microsoft.Toolkit.Parsers/Markdown/Blocks/TableBlock.cs index 8224f45766b..0ee728ca766 100644 --- a/Microsoft.Toolkit.Parsers/Markdown/Blocks/TableBlock.cs +++ b/Microsoft.Toolkit.Parsers/Markdown/Blocks/TableBlock.cs @@ -296,7 +296,7 @@ internal static int ParseContents(string markdown, int startingPos, int maxEndin /// the block should find the start of the block, find the end and parse out the middle. The end most of the time will not be /// the max ending pos, but it sometimes can be. The function will return where it ended parsing the block in the markdown. /// - /// the postiion parsed to + /// the position parsed to internal int Parse(string markdown, int startingPos, int maxEndingPos, int quoteDepth) { Cells = new List(); diff --git a/Microsoft.Toolkit.Parsers/Markdown/Blocks/YamlHeaderBlock.cs b/Microsoft.Toolkit.Parsers/Markdown/Blocks/YamlHeaderBlock.cs index 452f4ca2fe1..cb815721834 100644 --- a/Microsoft.Toolkit.Parsers/Markdown/Blocks/YamlHeaderBlock.cs +++ b/Microsoft.Toolkit.Parsers/Markdown/Blocks/YamlHeaderBlock.cs @@ -37,7 +37,7 @@ public YamlHeaderBlock() /// The markdown text. /// The location of the first hash character. /// The location of the end of the line. - /// The location of the actual end of the aprse. + /// The location of the actual end of the parse. /// Parsed class internal static YamlHeaderBlock Parse(string markdown, int start, int end, out int realEndIndex) { diff --git a/Microsoft.Toolkit.Parsers/Markdown/Helpers/Common.cs b/Microsoft.Toolkit.Parsers/Markdown/Helpers/Common.cs index 3e74b70d858..6f76660c1ba 100644 --- a/Microsoft.Toolkit.Parsers/Markdown/Helpers/Common.cs +++ b/Microsoft.Toolkit.Parsers/Markdown/Helpers/Common.cs @@ -268,7 +268,7 @@ public static int IndexOf(string markdown, string search, int startingPos, int e int remainingCount = markdown.Length - startingPos; if (count > remainingCount) { - DebuggingReporter.ReportCriticalError("IndexOf count > remaing count"); + DebuggingReporter.ReportCriticalError("IndexOf count > remaining count"); count = remainingCount; } @@ -306,7 +306,7 @@ public static int IndexOf(string markdown, char search, int startingPos, int end int remainingCount = markdown.Length - startingPos; if (count > remainingCount) { - DebuggingReporter.ReportCriticalError("IndexOf count > remaing count"); + DebuggingReporter.ReportCriticalError("IndexOf count > remaining count"); count = remainingCount; } diff --git a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerCS.cs b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerCS.cs index 5d8e09ab74a..ea7b344a626 100644 --- a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerCS.cs +++ b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerCS.cs @@ -28,7 +28,7 @@ public override ImmutableArray SupportedDiagnostics } /// - /// Gets instance of symbol from sytax node + /// Gets instance of symbol from syntax node /// /// instance of /// @@ -84,7 +84,7 @@ public static ISymbol GetTargetOfNode(SyntaxNode node, SemanticModel semanticMod } /// - /// Initialises the analyzer, registering for code analysis. + /// Initializes the analyzer, registering for code analysis. /// /// public override void Initialize(AnalysisContext context) diff --git a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerVB.cs b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerVB.cs index 115968ee68b..4cd001cad57 100644 --- a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerVB.cs +++ b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerVB.cs @@ -28,7 +28,7 @@ public override ImmutableArray SupportedDiagnostics } /// - /// Gets instance of symbol from sytax node + /// Gets instance of symbol from syntax node /// /// instance of /// diff --git a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificFixerCS.cs b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificFixerCS.cs index eb0281faf77..439d1958f19 100644 --- a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificFixerCS.cs +++ b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificFixerCS.cs @@ -27,7 +27,7 @@ namespace Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer public class PlatformSpecificFixerCS : CodeFixProvider { /// - /// Gets the list of Diagnotics that can be fixed. + /// Gets the list of Diagnostics that can be fixed. /// public sealed override ImmutableArray FixableDiagnosticIds { diff --git a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificFixerVB.cs b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificFixerVB.cs index e5f6fd5f4f4..e7f91129fd3 100644 --- a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificFixerVB.cs +++ b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificFixerVB.cs @@ -27,7 +27,7 @@ namespace Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer public class PlatformSpecificFixerVB : CodeFixProvider { /// - /// Gets the list of Diagnotics that can be fixed. + /// Gets the list of Diagnostics that can be fixed. /// public sealed override ImmutableArray FixableDiagnosticIds { diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Controls/SampleAppMarkdownRenderer.cs b/Microsoft.Toolkit.Uwp.SampleApp/Controls/SampleAppMarkdownRenderer.cs index e3786ef8bba..3e6e40ca28a 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/Controls/SampleAppMarkdownRenderer.cs +++ b/Microsoft.Toolkit.Uwp.SampleApp/Controls/SampleAppMarkdownRenderer.cs @@ -236,9 +236,9 @@ protected override void RenderQuote(QuoteBlock element, IRenderContext context) DocFXNote noteType = null; string header = null; - SolidColorBrush localforeground = null; - SolidColorBrush localbackground = null; - string symbolglyph = string.Empty; + SolidColorBrush localForeground = null; + SolidColorBrush localBackground = null; + string symbolGlyph = string.Empty; var theme = SampleController.Current.GetActualTheme(); @@ -255,7 +255,7 @@ protected override void RenderQuote(QuoteBlock element, IRenderContext context) { noteType = style; header = style.IdentifierReplacement; - symbolglyph = style.Glyph; + symbolGlyph = style.Glyph; // Removes the identifier from the text textInline.Text = textInline.Text.Replace(key, string.Empty); @@ -273,20 +273,20 @@ protected override void RenderQuote(QuoteBlock element, IRenderContext context) { noteType = style; header = style.IdentifierReplacement; - symbolglyph = style.Glyph; + symbolGlyph = style.Glyph; // Removes the identifier from the text textinline.Text = textinline.Text.Replace(key, string.Empty); if (theme == ElementTheme.Light) { - localforeground = style.LightForeground; - localbackground = style.LightBackground; + localForeground = style.LightForeground; + localBackground = style.LightBackground; } else { - localforeground = new SolidColorBrush(Colors.White); - localbackground = style.DarkBackground; + localForeground = new SolidColorBrush(Colors.White); + localBackground = style.DarkBackground; } // Apply special formatting context. @@ -298,7 +298,7 @@ protected override void RenderQuote(QuoteBlock element, IRenderContext context) localContext.TrimLeadingWhitespace = true; QuoteForeground = Foreground; - LinkForeground = localforeground; + LinkForeground = localForeground; } } } @@ -336,12 +336,12 @@ protected override void RenderQuote(QuoteBlock element, IRenderContext context) border.BorderThickness = new Thickness(0); border.Padding = new Thickness(20); border.Margin = new Thickness(0, 5, 0, 5); - border.Background = localbackground; + border.Background = localBackground; if (theme == ElementTheme.Light) { border.BorderThickness = new Thickness(0.5); - border.BorderBrush = localforeground; + border.BorderBrush = localForeground; } var headerPanel = new StackPanel @@ -353,15 +353,15 @@ protected override void RenderQuote(QuoteBlock element, IRenderContext context) headerPanel.Children.Add(new TextBlock { FontSize = 18, - Foreground = localforeground, - Text = symbolglyph, + Foreground = localForeground, + Text = symbolGlyph, FontFamily = new FontFamily("Segoe MDL2 Assets"), }); headerPanel.Children.Add(new TextBlock { FontSize = 16, - Foreground = localforeground, + Foreground = localForeground, Margin = new Thickness(5, 0, 0, 0), Text = header, VerticalAlignment = VerticalAlignment.Center, diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Data/DataGridDataItem.cs b/Microsoft.Toolkit.Uwp.SampleApp/Data/DataGridDataItem.cs index 18a3aa43a0d..099691541e7 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/Data/DataGridDataItem.cs +++ b/Microsoft.Toolkit.Uwp.SampleApp/Data/DataGridDataItem.cs @@ -56,7 +56,7 @@ public string Mountain if (_mountain == string.Empty && isMountainValid) { List errors = new List(); - errors.Add("Montain name cannot be empty"); + errors.Add("Mountain name cannot be empty"); _errors.Add("Mountain", errors); this.ErrorsChanged?.Invoke(this, new DataErrorsChangedEventArgs("Mountain")); } diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs b/Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs index b94c358fbc7..5a407197bc3 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs +++ b/Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs @@ -182,9 +182,9 @@ public async Task GetCSharpSourceAsync() { using (var codeStream = await StreamHelper.GetPackagedFileStreamAsync(CodeFile.StartsWith('/') ? CodeFile : $"SamplePages/{Name}/{CodeFile}")) { - using (var streamreader = new StreamReader(codeStream.AsStream())) + using (var streamReader = new StreamReader(codeStream.AsStream())) { - return await streamreader.ReadToEndAsync(); + return await streamReader.ReadToEndAsync(); } } } @@ -193,9 +193,9 @@ public async Task GetJavaScriptSourceAsync() { using (var codeStream = await StreamHelper.GetPackagedFileStreamAsync(JavaScriptCodeFile.StartsWith('/') ? JavaScriptCodeFile : $"SamplePages/{Name}/{JavaScriptCodeFile}")) { - using (var streamreader = new StreamReader(codeStream.AsStream())) + using (var streamReader = new StreamReader(codeStream.AsStream())) { - return await streamreader.ReadToEndAsync(); + return await streamReader.ReadToEndAsync(); } } } @@ -300,13 +300,13 @@ async Task CopyStream(HttpContent source) } IRandomAccessStream imageStream = null; - var localpath = $"{uri.Host}/{uri.LocalPath}"; + var localPath = $"{uri.Host}/{uri.LocalPath}"; // Cache only in Release #if !DEBUG try { - imageStream = await StreamHelper.GetLocalCacheFileStreamAsync(localpath, Windows.Storage.FileAccessMode.Read); + imageStream = await StreamHelper.GetLocalCacheFileStreamAsync(localPath, Windows.Storage.FileAccessMode.Read); } catch { @@ -343,17 +343,17 @@ async Task CopyStream(HttpContent source) return imageStream; } - private async Task SaveImageToCache(string localpath, Stream imageStream) + private async Task SaveImageToCache(string localPath, Stream imageStream) { var folder = ApplicationData.Current.LocalCacheFolder; - localpath = Path.Combine(folder.Path, localpath); + localPath = Path.Combine(folder.Path, localPath); // Resort to creating using traditional methods to avoid iteration for folder creation. - Directory.CreateDirectory(Path.GetDirectoryName(localpath)); + Directory.CreateDirectory(Path.GetDirectoryName(localPath)); - using (var filestream = File.Create(localpath)) + using (var fileStream = File.Create(localPath)) { - await imageStream.CopyToAsync(filestream); + await imageStream.CopyToAsync(fileStream); } } diff --git a/Microsoft.Toolkit/Helpers/NotifyTaskCompletion.cs b/Microsoft.Toolkit/Helpers/NotifyTaskCompletion.cs index 2d720493fd4..515edb45b9b 100644 --- a/Microsoft.Toolkit/Helpers/NotifyTaskCompletion.cs +++ b/Microsoft.Toolkit/Helpers/NotifyTaskCompletion.cs @@ -119,7 +119,7 @@ public TResult Result public bool IsFaulted => Task.IsFaulted; /// - /// Gets the exception which occured on the task (if one occurred). + /// Gets the exception which occurred on the task (if one occurred). /// public AggregateException Exception => Task.Exception; diff --git a/Microsoft.Toolkit/IncrementalLoadingCollection/IIncrementalSource.cs b/Microsoft.Toolkit/IncrementalLoadingCollection/IIncrementalSource.cs index 45059162607..d2ee7bf2020 100644 --- a/Microsoft.Toolkit/IncrementalLoadingCollection/IIncrementalSource.cs +++ b/Microsoft.Toolkit/IncrementalLoadingCollection/IIncrementalSource.cs @@ -15,7 +15,7 @@ namespace Microsoft.Toolkit.Collections public interface IIncrementalSource { /// - /// This method is invoked everytime the view need to show more items. Retrieves items based on and arguments. + /// This method is invoked every time the view need to show more items. Retrieves items based on and arguments. /// /// /// The zero-based index of the page that corresponds to the items to retrieve. From 221b615de6f51f08ddfd7555e4f94b584339d7dd Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 2 Aug 2020 19:36:09 +1000 Subject: [PATCH 2/2] more spelling --- .../Core/IAuthenticationBroker.cs | 2 +- .../Exceptions/ConfigNullException.cs | 2 +- .../Exceptions/OAuthKeysRevokedException.cs | 2 +- .../NETFramework/NetFrameworkAuthenticationBroker.cs | 4 ++-- .../Services/LinkedIn/LinkedInDataProvider.cs | 6 +++--- .../Services/LinkedIn/LinkedInService.cs | 10 +++++----- .../MicrosoftTranslator/ITranslatorService.cs | 4 ++-- .../Services/MicrosoftTranslator/ServiceLanguage.cs | 2 +- Microsoft.Toolkit.Services/Services/Twitter/Tweet.cs | 2 +- .../Services/Twitter/TwitterDataProvider.cs | 8 ++++---- .../Services/Twitter/TwitterOAuthRequestBuilder.cs | 4 ++-- .../Services/Twitter/TwitterPlaceBoundingBox.cs | 2 +- .../Services/Twitter/TwitterService.cs | 8 ++++---- .../Services/Twitter/TwitterStreamEventType.cs | 2 +- .../PlatformSpecificAnalyzerVB.cs | 2 +- .../Controls/XamlCodeEditor.xaml.cs | 6 +++--- Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs | 2 +- .../Diagnostics/Guard.Comparable.Generic.cs | 12 ++++++------ Microsoft.Toolkit/Diagnostics/ThrowHelper.cs | 2 +- 19 files changed, 41 insertions(+), 41 deletions(-) diff --git a/Microsoft.Toolkit.Services/Core/IAuthenticationBroker.cs b/Microsoft.Toolkit.Services/Core/IAuthenticationBroker.cs index 770b5c3703d..1c56147e7c8 100644 --- a/Microsoft.Toolkit.Services/Core/IAuthenticationBroker.cs +++ b/Microsoft.Toolkit.Services/Core/IAuthenticationBroker.cs @@ -18,7 +18,7 @@ public interface IAuthenticationBroker /// /// Returns the authentication status, it could be UserCancel, ErrorHttp and Success. /// - /// Autorization base url + /// Authorization base url /// LinkedInOAuthTokens callbackUri /// Returns a status Task Authenticate(Uri requestUri, Uri callbackUri); diff --git a/Microsoft.Toolkit.Services/Exceptions/ConfigNullException.cs b/Microsoft.Toolkit.Services/Exceptions/ConfigNullException.cs index 550b98fa1ba..f32b19b731a 100644 --- a/Microsoft.Toolkit.Services/Exceptions/ConfigNullException.cs +++ b/Microsoft.Toolkit.Services/Exceptions/ConfigNullException.cs @@ -31,7 +31,7 @@ public ConfigNullException(string message) /// /// Initializes a new instance of the class. - /// Constructor accepting additonal message string and inner exception + /// Constructor accepting additional message string and inner exception /// /// Additional error information. /// Reference to inner exception. diff --git a/Microsoft.Toolkit.Services/Exceptions/OAuthKeysRevokedException.cs b/Microsoft.Toolkit.Services/Exceptions/OAuthKeysRevokedException.cs index 363330b72e0..f9126448ada 100644 --- a/Microsoft.Toolkit.Services/Exceptions/OAuthKeysRevokedException.cs +++ b/Microsoft.Toolkit.Services/Exceptions/OAuthKeysRevokedException.cs @@ -33,7 +33,7 @@ public OAuthKeysRevokedException(string message) /// Initializes a new instance of the class. /// Constructor with additional message and inner exception. /// - /// Additionnal message. + /// Additional message. /// Reference to inner exception. public OAuthKeysRevokedException(string message, Exception innerException) : base(message, innerException) diff --git a/Microsoft.Toolkit.Services/PlatformSpecific/NETFramework/NetFrameworkAuthenticationBroker.cs b/Microsoft.Toolkit.Services/PlatformSpecific/NETFramework/NetFrameworkAuthenticationBroker.cs index 76fcb333f2e..11ea848c2d1 100644 --- a/Microsoft.Toolkit.Services/PlatformSpecific/NETFramework/NetFrameworkAuthenticationBroker.cs +++ b/Microsoft.Toolkit.Services/PlatformSpecific/NETFramework/NetFrameworkAuthenticationBroker.cs @@ -21,7 +21,7 @@ public Task Authenticate(Uri requestUri, Uri callbackUri) } else if (Application.Current != null) { - return AutenticateWindow(requestUri, callbackUri); + return this.AuthenticateWindow(requestUri, callbackUri); } else { @@ -30,7 +30,7 @@ public Task Authenticate(Uri requestUri, Uri callbackUri) } } - public async Task AutenticateWindow(Uri requestUri, Uri callbackUri) + public async Task AuthenticateWindow(Uri requestUri, Uri callbackUri) { PopupWPF popupWindow; var taskCompletionSource = new TaskCompletionSource(); diff --git a/Microsoft.Toolkit.Services/Services/LinkedIn/LinkedInDataProvider.cs b/Microsoft.Toolkit.Services/Services/LinkedIn/LinkedInDataProvider.cs index aa45d7c9598..f852688bc57 100644 --- a/Microsoft.Toolkit.Services/Services/LinkedIn/LinkedInDataProvider.cs +++ b/Microsoft.Toolkit.Services/Services/LinkedIn/LinkedInDataProvider.cs @@ -171,9 +171,9 @@ public void Logout() /// A representing the asynchronous operation. public async Task LogoutAsync() { - var crendential = _passwordManager.Get(LinkedInConstants.STORAGEKEYACCESSTOKEN); + var credential = _passwordManager.Get(LinkedInConstants.STORAGEKEYACCESSTOKEN); - if (crendential != null) + if (credential != null) { _passwordManager.Remove(LinkedInConstants.STORAGEKEYACCESSTOKEN); await _storageManager.SetAsync(LinkedInConstants.STORAGEKEYUSER, null); @@ -189,7 +189,7 @@ public async Task LogoutAsync() /// Query configuration. /// Upper limit for records returned. /// Index of paged results. - /// A comma seperated string of required fields, which will have strongly typed representation in the model passed in. + /// A comma separated string of required fields, which will have strongly typed representation in the model passed in. /// Strongly typed list of results. public async Task> GetDataAsync(LinkedInDataConfig config, int maxRecords, int startRecord = 0, string fields = "id") { diff --git a/Microsoft.Toolkit.Services/Services/LinkedIn/LinkedInService.cs b/Microsoft.Toolkit.Services/Services/LinkedIn/LinkedInService.cs index a70a7cff8dd..63ee832164f 100644 --- a/Microsoft.Toolkit.Services/Services/LinkedIn/LinkedInService.cs +++ b/Microsoft.Toolkit.Services/Services/LinkedIn/LinkedInService.cs @@ -138,7 +138,7 @@ public bool Initialize(string clientId, string clientSecret, string callbackUri) #if NET462 /// - /// Initialize underlying provider with relevent token information for Uwp. + /// Initialize underlying provider with relevant token information for Uwp. /// /// Token instance. /// Scope / permissions app requires user to sign up for. @@ -149,7 +149,7 @@ public bool Initialize(LinkedInOAuthTokens oAuthTokens, LinkedInPermissions requ } /// - /// Initialize underlying provider with relevent token information. + /// Initialize underlying provider with relevant token information. /// /// Client Id. /// Client secret. @@ -162,7 +162,7 @@ public bool Initialize(string clientId, string clientSecret, string callbackUri) #endif /// - /// Initialize underlying provider with relevent token information. + /// Initialize underlying provider with relevant token information. /// /// Client Id. /// Client secret. @@ -199,7 +199,7 @@ public bool Initialize(string clientId, string clientSecret, string callbackUri, } /// - /// Initialize underlying provider with relevent token information. + /// Initialize underlying provider with relevant token information. /// /// Token instance. /// Authentication result interface. @@ -231,7 +231,7 @@ public bool Initialize(LinkedInOAuthTokens oAuthTokens, IAuthenticationBroker au /// LinkedInDataConfig instance. /// Upper limit of records to return. /// Index of paged results. - /// A comma seperated string of required fields, which will have strongly typed representation in the model passed in. + /// A comma separated string of required fields, which will have strongly typed representation in the model passed in. /// Strongly typed list of data returned from the service. public async Task> RequestAsync(LinkedInDataConfig config, int maxRecords = 20, int startRecord = 0, string fields = "id") { diff --git a/Microsoft.Toolkit.Services/Services/MicrosoftTranslator/ITranslatorService.cs b/Microsoft.Toolkit.Services/Services/MicrosoftTranslator/ITranslatorService.cs index c5c7f0227ed..984a74d6646 100644 --- a/Microsoft.Toolkit.Services/Services/MicrosoftTranslator/ITranslatorService.cs +++ b/Microsoft.Toolkit.Services/Services/MicrosoftTranslator/ITranslatorService.cs @@ -35,7 +35,7 @@ public interface ITranslatorService /// A that represents the initialize operation. /// The property hasn't been set. /// The provided isn't valid or has expired. - /// Calling this method isn't mandatory, because the token is get/refreshed everytime is needed. However, it is called at startup, it can speed-up subsequest requests. + /// Calling this method isn't mandatory, because the token is get/refreshed every time is needed. However, it is called at startup, it can speed-up subsequent requests. Task InitializeAsync(); /// @@ -47,7 +47,7 @@ public interface ITranslatorService /// The property hasn't been set. /// The provided isn't valid or has expired. /// - /// Calling this method isn't mandatory, because the token is get/refreshed everytime is needed. However, it is called at startup, it can speed-up subsequest requests. + /// Calling this method isn't mandatory, because the token is get/refreshed every time is needed. However, it is called at startup, it can speed-up subsequent requests. /// You must register Microsoft Translator on https://portal.azure.com to obtain the Subscription key needed to use the service. /// Task InitializeAsync(string subscriptionKey, string language = null); diff --git a/Microsoft.Toolkit.Services/Services/MicrosoftTranslator/ServiceLanguage.cs b/Microsoft.Toolkit.Services/Services/MicrosoftTranslator/ServiceLanguage.cs index 27fd7065ed1..6053cebb865 100644 --- a/Microsoft.Toolkit.Services/Services/MicrosoftTranslator/ServiceLanguage.cs +++ b/Microsoft.Toolkit.Services/Services/MicrosoftTranslator/ServiceLanguage.cs @@ -7,7 +7,7 @@ namespace Microsoft.Toolkit.Services.MicrosoftTranslator { /// - /// Holds information about langagues supported for text translation and speech synthesis. + /// Holds information about languages supported for text translation and speech synthesis. /// /// public class ServiceLanguage diff --git a/Microsoft.Toolkit.Services/Services/Twitter/Tweet.cs b/Microsoft.Toolkit.Services/Services/Twitter/Tweet.cs index 1714ead9951..97d2613aa02 100644 --- a/Microsoft.Toolkit.Services/Services/Twitter/Tweet.cs +++ b/Microsoft.Toolkit.Services/Services/Twitter/Tweet.cs @@ -100,7 +100,7 @@ public string Text public TwitterUser User { get; set; } /// - /// Gets or sets geo coordinates (latitude and logitude) returned by Twitter for some locations + /// Gets or sets geo coordinates (latitude and longitude) returned by Twitter for some locations /// [JsonProperty("coordinates")] [JsonConverter(typeof(TwitterCoordinatesConverter))] diff --git a/Microsoft.Toolkit.Services/Services/Twitter/TwitterDataProvider.cs b/Microsoft.Toolkit.Services/Services/Twitter/TwitterDataProvider.cs index 14e1d05e934..a6eda59f07e 100644 --- a/Microsoft.Toolkit.Services/Services/Twitter/TwitterDataProvider.cs +++ b/Microsoft.Toolkit.Services/Services/Twitter/TwitterDataProvider.cs @@ -227,12 +227,12 @@ public async Task> SearchAsync(string hashTag, int /// Boolean indicating login success. public async Task LoginAsync() { - var crendetials = _passwordManager.Get("TwitterAccessToken"); + var credentials = _passwordManager.Get("TwitterAccessToken"); var user = await _storageManager.GetAsync("TwitterScreenName"); - if (!string.IsNullOrEmpty(user) && crendetials != null) + if (!string.IsNullOrEmpty(user) && credentials != null) { - _tokens.AccessToken = crendetials.UserName; - _tokens.AccessTokenSecret = crendetials.Password; + _tokens.AccessToken = credentials.UserName; + _tokens.AccessTokenSecret = credentials.Password; UserScreenName = user; LoggedIn = true; return true; diff --git a/Microsoft.Toolkit.Services/Services/Twitter/TwitterOAuthRequestBuilder.cs b/Microsoft.Toolkit.Services/Services/Twitter/TwitterOAuthRequestBuilder.cs index bce843e1ea6..671bbff15ab 100644 --- a/Microsoft.Toolkit.Services/Services/Twitter/TwitterOAuthRequestBuilder.cs +++ b/Microsoft.Toolkit.Services/Services/Twitter/TwitterOAuthRequestBuilder.cs @@ -203,7 +203,7 @@ private string GenerateSignature() /// /// Generate authorization header. /// - /// Generated authorizatin header string. + /// Generated authorization header string. private string GenerateAuthorizationHeader() { StringBuilder authHeaderBuilder = new StringBuilder(); @@ -237,7 +237,7 @@ private IEnumerable GetSignParameters() /// /// Get list of auth header parameters. /// - /// List of auth header paramters. + /// List of auth header parameters. private IEnumerable GetAuthHeaderParameters() { yield return Version; diff --git a/Microsoft.Toolkit.Services/Services/Twitter/TwitterPlaceBoundingBox.cs b/Microsoft.Toolkit.Services/Services/Twitter/TwitterPlaceBoundingBox.cs index 4afe10a13b0..9e20940bf28 100644 --- a/Microsoft.Toolkit.Services/Services/Twitter/TwitterPlaceBoundingBox.cs +++ b/Microsoft.Toolkit.Services/Services/Twitter/TwitterPlaceBoundingBox.cs @@ -20,7 +20,7 @@ public class TwitterPlaceBoundingBox public List> Coordinates { get; set; } /// - /// Gets or sets the coordinate type. Polygon for a bounding box, Pointn for an exact coordinate. + /// Gets or sets the coordinate type. Polygon for a bounding box, Point for an exact coordinate. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/Microsoft.Toolkit.Services/Services/Twitter/TwitterService.cs b/Microsoft.Toolkit.Services/Services/Twitter/TwitterService.cs index dc2526cf0c9..d343db885ab 100644 --- a/Microsoft.Toolkit.Services/Services/Twitter/TwitterService.cs +++ b/Microsoft.Toolkit.Services/Services/Twitter/TwitterService.cs @@ -68,7 +68,7 @@ public TwitterService() public string UserScreenName => Provider.UserScreenName; /// - /// Initialize underlying provider with relevent token information. + /// Initialize underlying provider with relevant token information. /// /// Consumer key. /// Consumer secret. @@ -126,7 +126,7 @@ public bool Initialize(string consumerKey, string consumerSecret, string callbac } /// - /// Initialize underlying provider with relevent token information. + /// Initialize underlying provider with relevant token information. /// /// Token instance. /// Authentication result interface. @@ -175,7 +175,7 @@ public bool Initialize(TwitterOAuthTokens oAuthTokens) #if NET462 /// - /// Initialize underlying provider with relevent token information for Uwp. + /// Initialize underlying provider with relevant token information for Uwp. /// /// Consumer key. /// Consumer secret. @@ -187,7 +187,7 @@ public bool Initialize(string consumerKey, string consumerSecret, string callbac } /// - /// Initialize underlying provider with relevent token information. + /// Initialize underlying provider with relevant token information. /// /// Token instance. /// Success or failure. diff --git a/Microsoft.Toolkit.Services/Services/Twitter/TwitterStreamEventType.cs b/Microsoft.Toolkit.Services/Services/Twitter/TwitterStreamEventType.cs index 04d0201d030..246c3eeca8d 100644 --- a/Microsoft.Toolkit.Services/Services/Twitter/TwitterStreamEventType.cs +++ b/Microsoft.Toolkit.Services/Services/Twitter/TwitterStreamEventType.cs @@ -7,7 +7,7 @@ namespace Microsoft.Toolkit.Services.Twitter { /// - /// Describes the type of event that has occured on twitter + /// Describes the type of event that has occurred on twitter /// public enum TwitterStreamEventType { diff --git a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerVB.cs b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerVB.cs index 4cd001cad57..ec67c731a74 100644 --- a/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerVB.cs +++ b/Microsoft.Toolkit.Uwp.PlatformSpecificAnalyzer/PlatformSpecificAnalyzerVB.cs @@ -98,7 +98,7 @@ public static ISymbol GetTargetOfNode(SyntaxNode node, SemanticModel semanticMod } /// - /// Initialises the analyzer, registering for code analysis. + /// Initializes the analyzer, registering for code analysis. /// /// public override void Initialize(AnalysisContext context) diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Controls/XamlCodeEditor.xaml.cs b/Microsoft.Toolkit.Uwp.SampleApp/Controls/XamlCodeEditor.xaml.cs index aa7ca06244a..d742974ab73 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/Controls/XamlCodeEditor.xaml.cs +++ b/Microsoft.Toolkit.Uwp.SampleApp/Controls/XamlCodeEditor.xaml.cs @@ -93,10 +93,10 @@ private void XamlCodeRenderer_KeyDown(Monaco.CodeEditor sender, Monaco.Helpers.W // TODO: Mark Dirty here if we want to prevent overwrites. // Setup Time for Auto-Compile - this._autocompileTimer?.Cancel(); // Stop Old Timer + this._autoCompileTimer?.Cancel(); // Stop Old Timer // Create Compile Timer - this._autocompileTimer = ThreadPoolTimer.CreateTimer( + this._autoCompileTimer = ThreadPoolTimer.CreateTimer( e => { UpdateRequested?.Invoke(this, EventArgs.Empty); @@ -131,7 +131,7 @@ public string Text GlyphImage = new Uri("ms-appx-web:///Icons/Error.png") }; - private ThreadPoolTimer _autocompileTimer; + private ThreadPoolTimer _autoCompileTimer; public event EventHandler UpdateRequested; diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs b/Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs index 5a407197bc3..d9aeb0c36ba 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs +++ b/Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs @@ -473,7 +473,7 @@ public async Task PreparePropertyDescriptorAsync() if (existingOption == null && string.IsNullOrWhiteSpace(type)) { - throw new NotSupportedException($"Unrecognized short identifier '{name}'; Define type and parameters of property in first occurance in {XamlCodeFile}."); + throw new NotSupportedException($"Unrecognized short identifier '{name}'; Define type and parameters of property in first occurence in {XamlCodeFile}."); } if (Enum.TryParse(type, out PropertyKind kind)) diff --git a/Microsoft.Toolkit/Diagnostics/Guard.Comparable.Generic.cs b/Microsoft.Toolkit/Diagnostics/Guard.Comparable.Generic.cs index a57f183b996..e250821db25 100644 --- a/Microsoft.Toolkit/Diagnostics/Guard.Comparable.Generic.cs +++ b/Microsoft.Toolkit/Diagnostics/Guard.Comparable.Generic.cs @@ -122,7 +122,7 @@ public static unsafe void IsBitwiseEqualTo(T value, T target, string name) return; } - ThrowHelper.ThrowArgumentExceptionForsBitwiseEqualTo(value, target, name); + ThrowHelper.ThrowArgumentExceptionForBitwiseEqualTo(value, target, name); } else if (sizeof(T) == 2) { @@ -134,7 +134,7 @@ public static unsafe void IsBitwiseEqualTo(T value, T target, string name) return; } - ThrowHelper.ThrowArgumentExceptionForsBitwiseEqualTo(value, target, name); + ThrowHelper.ThrowArgumentExceptionForBitwiseEqualTo(value, target, name); } else if (sizeof(T) == 4) { @@ -146,7 +146,7 @@ public static unsafe void IsBitwiseEqualTo(T value, T target, string name) return; } - ThrowHelper.ThrowArgumentExceptionForsBitwiseEqualTo(value, target, name); + ThrowHelper.ThrowArgumentExceptionForBitwiseEqualTo(value, target, name); } else if (sizeof(T) == 8) { @@ -158,7 +158,7 @@ public static unsafe void IsBitwiseEqualTo(T value, T target, string name) return; } - ThrowHelper.ThrowArgumentExceptionForsBitwiseEqualTo(value, target, name); + ThrowHelper.ThrowArgumentExceptionForBitwiseEqualTo(value, target, name); } else if (sizeof(T) == 16) { @@ -176,7 +176,7 @@ public static unsafe void IsBitwiseEqualTo(T value, T target, string name) } } - ThrowHelper.ThrowArgumentExceptionForsBitwiseEqualTo(value, target, name); + ThrowHelper.ThrowArgumentExceptionForBitwiseEqualTo(value, target, name); } else { @@ -188,7 +188,7 @@ public static unsafe void IsBitwiseEqualTo(T value, T target, string name) return; } - ThrowHelper.ThrowArgumentExceptionForsBitwiseEqualTo(value, target, name); + ThrowHelper.ThrowArgumentExceptionForBitwiseEqualTo(value, target, name); } } diff --git a/Microsoft.Toolkit/Diagnostics/ThrowHelper.cs b/Microsoft.Toolkit/Diagnostics/ThrowHelper.cs index aad8c57b9f0..3a25912cbca 100644 --- a/Microsoft.Toolkit/Diagnostics/ThrowHelper.cs +++ b/Microsoft.Toolkit/Diagnostics/ThrowHelper.cs @@ -141,7 +141,7 @@ public static void ThrowArgumentExceptionForIsNotAssignableToType(object value, /// The type of input values being compared. [MethodImpl(MethodImplOptions.NoInlining)] [DoesNotReturn] - public static void ThrowArgumentExceptionForsBitwiseEqualTo(T value, T target, string name) + public static void ThrowArgumentExceptionForBitwiseEqualTo(T value, T target, string name) where T : unmanaged { ThrowArgumentException(name, $"Parameter {name.ToAssertString()} ({typeof(T).ToTypeString()}) is not a bitwise match, was <{value.ToHexString()}> instead of <{target.ToHexString()}>");