From 888ec93bc7400fcb2e3a9854109c24e01ced56d5 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 20 Dec 2021 13:21:27 +0100 Subject: [PATCH] Fix a few typos --- .../Extensions/DependencyObjectExtensions.cs | 26 +++++++++---------- .../FrameworkElementExtensions.LogicalTree.cs | 20 +++++++------- .../Predicates/PredicateByFunc{T,TState}.cs | 4 +-- .../Predicates/PredicateByFunc{T}.cs | 4 +-- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Microsoft.Toolkit.Uwp.UI/Extensions/DependencyObjectExtensions.cs b/Microsoft.Toolkit.Uwp.UI/Extensions/DependencyObjectExtensions.cs index 2ddfa0bc000..0fccee4bdfa 100644 --- a/Microsoft.Toolkit.Uwp.UI/Extensions/DependencyObjectExtensions.cs +++ b/Microsoft.Toolkit.Uwp.UI/Extensions/DependencyObjectExtensions.cs @@ -108,7 +108,7 @@ public static class DependencyObjectExtensions /// /// The type of elements to match. /// The root element. - /// The predicatee to use to match the descendant nodes. + /// The predicate to use to match the descendant nodes. /// The descendant that was found, or . public static T? FindDescendant(this DependencyObject element, Func predicate) where T : notnull, DependencyObject @@ -123,7 +123,7 @@ public static class DependencyObjectExtensions /// /// The type of elements to match. /// The root element. - /// The predicatee to use to match the descendant nodes. + /// The predicate to use to match the descendant nodes. /// The search type to use to explore the visual tree. /// The descendant that was found, or . public static T? FindDescendant(this DependencyObject element, Func predicate, SearchType searchType) @@ -141,7 +141,7 @@ public static class DependencyObjectExtensions /// The type of state to use when matching nodes. /// The root element. /// The state to give as input to . - /// The predicatee to use to match the descendant nodes. + /// The predicate to use to match the descendant nodes. /// The descendant that was found, or . public static T? FindDescendant(this DependencyObject element, TState state, Func predicate) where T : notnull, DependencyObject @@ -158,7 +158,7 @@ public static class DependencyObjectExtensions /// The type of state to use when matching nodes. /// The root element. /// The state to give as input to . - /// The predicatee to use to match the descendant nodes. + /// The predicate to use to match the descendant nodes. /// The search type to use to explore the visual tree. /// The descendant that was found, or . public static T? FindDescendant(this DependencyObject element, TState state, Func predicate, SearchType searchType) @@ -374,7 +374,7 @@ public static class DependencyObjectExtensions /// /// The type of elements to match. /// The root element. - /// The predicatee to use to match the descendant nodes. + /// The predicate to use to match the descendant nodes. /// The descendant (or self) that was found, or . public static T? FindDescendantOrSelf(this DependencyObject element, Func predicate) where T : notnull, DependencyObject @@ -392,7 +392,7 @@ public static class DependencyObjectExtensions /// /// The type of elements to match. /// The root element. - /// The predicatee to use to match the descendant nodes. + /// The predicate to use to match the descendant nodes. /// The search type to use to explore the visual tree. /// The descendant (or self) that was found, or . public static T? FindDescendantOrSelf(this DependencyObject element, Func predicate, SearchType searchType) @@ -413,7 +413,7 @@ public static class DependencyObjectExtensions /// The type of state to use when matching nodes. /// The root element. /// The state to give as input to . - /// The predicatee to use to match the descendant nodes. + /// The predicate to use to match the descendant nodes. /// The descendant (or self) that was found, or . public static T? FindDescendantOrSelf(this DependencyObject element, TState state, Func predicate) where T : notnull, DependencyObject @@ -433,7 +433,7 @@ public static class DependencyObjectExtensions /// The type of state to use when matching nodes. /// The root element. /// The state to give as input to . - /// The predicatee to use to match the descendant nodes. + /// The predicate to use to match the descendant nodes. /// The search type to use to explore the visual tree. /// The descendant (or self) that was found, or . public static T? FindDescendantOrSelf(this DependencyObject element, TState state, Func predicate, SearchType searchType) @@ -727,7 +727,7 @@ static IEnumerable ThrowArgumentOutOfRangeExceptionForInvalidS /// /// The type of elements to match. /// The starting element. - /// The predicatee to use to match the ascendant nodes. + /// The predicate to use to match the ascendant nodes. /// The ascendant that was found, or . public static T? FindAscendant(this DependencyObject element, Func predicate) where T : notnull, DependencyObject @@ -744,7 +744,7 @@ static IEnumerable ThrowArgumentOutOfRangeExceptionForInvalidS /// The type of state to use when matching nodes. /// The starting element. /// The state to give as input to . - /// The predicatee to use to match the ascendant nodes. + /// The predicate to use to match the ascendant nodes. /// The ascendant that was found, or . public static T? FindAscendant(this DependencyObject element, TState state, Func predicate) where T : notnull, DependencyObject @@ -760,7 +760,7 @@ static IEnumerable ThrowArgumentOutOfRangeExceptionForInvalidS /// The type of elements to match. /// The type of predicate in use. /// The starting element. - /// The predicatee to use to match the ascendant nodes. + /// The predicate to use to match the ascendant nodes. /// The ascendant that was found, or . private static T? FindAscendant(this DependencyObject element, ref TPredicate predicate) where T : notnull, DependencyObject @@ -839,7 +839,7 @@ static IEnumerable ThrowArgumentOutOfRangeExceptionForInvalidS /// /// The type of elements to match. /// The starting element. - /// The predicatee to use to match the ascendant nodes. + /// The predicate to use to match the ascendant nodes. /// The ascendant (or self) that was found, or . public static T? FindAscendantOrSelf(this DependencyObject element, Func predicate) where T : notnull, DependencyObject @@ -859,7 +859,7 @@ static IEnumerable ThrowArgumentOutOfRangeExceptionForInvalidS /// The type of state to use when matching nodes. /// The starting element. /// The state to give as input to . - /// The predicatee to use to match the ascendant nodes. + /// The predicate to use to match the ascendant nodes. /// The ascendant (or self) that was found, or . public static T? FindAscendantOrSelf(this DependencyObject element, TState state, Func predicate) where T : notnull, DependencyObject diff --git a/Microsoft.Toolkit.Uwp.UI/Extensions/FrameworkElement/FrameworkElementExtensions.LogicalTree.cs b/Microsoft.Toolkit.Uwp.UI/Extensions/FrameworkElement/FrameworkElementExtensions.LogicalTree.cs index 71a766e1f77..998219d449c 100644 --- a/Microsoft.Toolkit.Uwp.UI/Extensions/FrameworkElement/FrameworkElementExtensions.LogicalTree.cs +++ b/Microsoft.Toolkit.Uwp.UI/Extensions/FrameworkElement/FrameworkElementExtensions.LogicalTree.cs @@ -63,7 +63,7 @@ public static partial class FrameworkElementExtensions /// /// The type of elements to match. /// The root element. - /// The predicatee to use to match the child nodes. + /// The predicate to use to match the child nodes. /// The child that was found, or . public static T? FindChild(this FrameworkElement element, Func predicate) where T : notnull, FrameworkElement @@ -80,7 +80,7 @@ public static partial class FrameworkElementExtensions /// The type of state to use when matching nodes. /// The root element. /// The state to give as input to . - /// The predicatee to use to match the child nodes. + /// The predicate to use to match the child nodes. /// The child that was found, or . public static T? FindChild(this FrameworkElement element, TState state, Func predicate) where T : notnull, FrameworkElement @@ -96,7 +96,7 @@ public static partial class FrameworkElementExtensions /// The type of elements to match. /// The type of predicate in use. /// The root element. - /// The predicatee to use to match the child nodes. + /// The predicate to use to match the child nodes. /// The child that was found, or . private static T? FindChild(this FrameworkElement element, ref TPredicate predicate) where T : notnull, FrameworkElement @@ -296,7 +296,7 @@ public static partial class FrameworkElementExtensions /// /// The type of elements to match. /// The root element. - /// The predicatee to use to match the child nodes. + /// The predicate to use to match the child nodes. /// The child (or self) that was found, or . public static T? FindChildOrSelf(this FrameworkElement element, Func predicate) where T : notnull, FrameworkElement @@ -316,7 +316,7 @@ public static partial class FrameworkElementExtensions /// The type of state to use when matching nodes. /// The root element. /// The state to give as input to . - /// The predicatee to use to match the child nodes. + /// The predicate to use to match the child nodes. /// The child (or self) that was found, or . public static T? FindChildOrSelf(this FrameworkElement element, TState state, Func predicate) where T : notnull, FrameworkElement @@ -490,7 +490,7 @@ public static IEnumerable FindChildren(this FrameworkElement e /// /// The type of elements to match. /// The starting element. - /// The predicatee to use to match the parent nodes. + /// The predicate to use to match the parent nodes. /// The parent that was found, or . public static T? FindParent(this FrameworkElement element, Func predicate) where T : notnull, FrameworkElement @@ -507,7 +507,7 @@ public static IEnumerable FindChildren(this FrameworkElement e /// The type of state to use when matching nodes. /// The starting element. /// The state to give as input to . - /// The predicatee to use to match the parent nodes. + /// The predicate to use to match the parent nodes. /// The parent that was found, or . public static T? FindParent(this FrameworkElement element, TState state, Func predicate) where T : notnull, FrameworkElement @@ -523,7 +523,7 @@ public static IEnumerable FindChildren(this FrameworkElement e /// The type of elements to match. /// The type of predicate in use. /// The starting element. - /// The predicatee to use to match the parent nodes. + /// The predicate to use to match the parent nodes. /// The parent that was found, or . private static T? FindParent(this FrameworkElement element, ref TPredicate predicate) where T : notnull, FrameworkElement @@ -600,7 +600,7 @@ public static IEnumerable FindChildren(this FrameworkElement e /// /// The type of elements to match. /// The starting element. - /// The predicatee to use to match the parent nodes. + /// The predicate to use to match the parent nodes. /// The parent (or self) that was found, or . public static T? FindParentOrSelf(this FrameworkElement element, Func predicate) where T : notnull, FrameworkElement @@ -620,7 +620,7 @@ public static IEnumerable FindChildren(this FrameworkElement e /// The type of state to use when matching nodes. /// The starting element. /// The state to give as input to . - /// The predicatee to use to match the parent nodes. + /// The predicate to use to match the parent nodes. /// The parent (or self) that was found, or . public static T? FindParentOrSelf(this FrameworkElement element, TState state, Func predicate) where T : notnull, FrameworkElement diff --git a/Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T,TState}.cs b/Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T,TState}.cs index d327441568b..0e04f1531d0 100644 --- a/Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T,TState}.cs +++ b/Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T,TState}.cs @@ -21,7 +21,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Predicates private readonly TState state; /// - /// The predicatee to use to match items. + /// The predicate to use to match items. /// private readonly Func predicate; @@ -29,7 +29,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Predicates /// Initializes a new instance of the struct. /// /// The state to give as input to . - /// The predicatee to use to match items. + /// The predicate to use to match items. public PredicateByFunc(TState state, Func predicate) { this.state = state; diff --git a/Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T}.cs b/Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T}.cs index c46b4f77203..8be22ede920 100644 --- a/Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T}.cs +++ b/Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T}.cs @@ -15,14 +15,14 @@ namespace Microsoft.Toolkit.Uwp.UI.Predicates where T : class { /// - /// The predicatee to use to match items. + /// The predicate to use to match items. /// private readonly Func predicate; /// /// Initializes a new instance of the struct. /// - /// The predicatee to use to match items. + /// The predicate to use to match items. public PredicateByFunc(Func predicate) { this.predicate = predicate;