Skip to content

Commit

Permalink
Merge pull request #11194 from Youssef1313/icommandextensions
Browse files Browse the repository at this point in the history
fix!: Make `ICommandExtensions` internal
  • Loading branch information
Youssef1313 authored Feb 6, 2023
2 parents 2b62b58 + 7c4e0bf commit 348b493
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions build/PackageDiffIgnore.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9135,6 +9135,7 @@
<Member fullName="Windows.Foundation.IClosable" reason="Shouldn't be visible in .NET and shows as IDisposable instead." />
<Member fullName="Windows.Storage.Streams.InMemoryBuffer" reason="Windows.Storage.Streams.Buffer should be used." />
<Member fullName="Windows.Foundation.HResult" reason="Type is hidden in .NET and shouldn't be used" />
<Member fullName="Uno.Client.ICommandExtensions" reason="Only needed internally" />
</Types>
<Events>
<Member fullName="Windows.Foundation.TypedEventHandler`2&lt;Microsoft.UI.Xaml.Controls.IInputValidationControl,Microsoft.UI.Xaml.Controls.HasValidationErrorsChangedEventArgs&gt; Microsoft.UI.Xaml.Controls.AutoSuggestBox::HasValidationErrorsChanged" reason="Not present in WinAppSDK 1.2" />
Expand Down
5 changes: 2 additions & 3 deletions src/Uno.Foundation/ICommandExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using System;
using System.Linq;

using System.Windows.Input;
using Uno.Extensions;

namespace Uno.Client
{
public static class ICommandExtensions
internal static class ICommandExtensions
{
/// <summary>
/// Executes the command if CanExecute returns true.
Expand All @@ -18,7 +17,7 @@ public static void ExecuteIfPossible(this ICommand command, object parameter = n
try
{
if (command != null && command.CanExecute(parameter))
{
{
command.Execute(parameter);
}
}
Expand Down

0 comments on commit 348b493

Please sign in to comment.