From 3dc2d07f111163c6d5d76f9c5d1fec1adb21f604 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Tue, 21 Nov 2023 21:31:22 +0000 Subject: [PATCH 1/6] Fix for #3644 Add BindCommandNonGeneric this is too avoid the request of not changing the existing code, therefore adding to the available options. NOTE: Bind only requires `IViewFor` and `IViewFor` inherits `IViewFor` therefore would still be a non breaking change if BindCommand were relaxed to IViewFor. add ReactiveUserControlNonGeneric for WinForms --- ...valTests.ReactiveUI.DotNet6_0.verified.txt | 20 + ...valTests.ReactiveUI.DotNet7_0.verified.txt | 20 + ...provalTests.ReactiveUI.Net4_7.verified.txt | 20 + ...rovalTests.Winforms.DotNet6_0.verified.txt | 5 + ...rovalTests.Winforms.DotNet7_0.verified.txt | 5 + ...rovalTests.Winforms.DotNet8_0.verified.txt | 5 + ...ApprovalTests.Winforms.Net4_7.verified.txt | 5 + .../Utilities/ApiApprovalBase.cs | 9 +- ...valTests.ReactiveUI.DotNet6_0.verified.txt | 1069 ++++++++++++++++ ...valTests.ReactiveUI.DotNet7_0.verified.txt | 1069 ++++++++++++++++ ...provalTests.ReactiveUI.Net4_7.verified.txt | 1074 +++++++++++++++++ ...provalTests.Testing.DotNet6_0.verified.txt | 55 + ...provalTests.Testing.DotNet7_0.verified.txt | 55 + ...iApprovalTests.Testing.Net4_7.verified.txt | 55 + ...rovalTests.Winforms.DotNet6_0.verified.txt | 116 ++ ...rovalTests.Winforms.DotNet7_0.verified.txt | 116 ++ ...rovalTests.Winforms.DotNet8_0.verified.txt | 116 ++ ...ApprovalTests.Winforms.Net4_7.verified.txt | 114 ++ ...piApprovalTests.Wpf.DotNet6_0.verified.txt | 139 +++ ...piApprovalTests.Wpf.DotNet7_0.verified.txt | 139 +++ ...piApprovalTests.Wpf.DotNet8_0.verified.txt | 139 +++ ...pfApiApprovalTests.Wpf.Net4_7.verified.txt | 137 +++ ...ApiApprovalTests.Blend.Net4_7.verified.txt | 23 + .../ReactiveUserControlNonGeneric.Designer.cs | 23 + .../ReactiveUserControlNonGeneric.cs | 39 + .../Bindings/Command/CommandBinder.cs | 112 ++ .../Command/CommandBinderImplementation.cs | 119 ++ .../CommandBinderImplementationMixins.cs | 37 +- .../Bindings/Command/CreatesCommandBinding.cs | 30 +- .../Command/CreatesCommandBindingViaEvent.cs | 8 +- .../Command/ICommandBinderImplementation.cs | 54 +- 31 files changed, 4885 insertions(+), 42 deletions(-) create mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet6_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet7_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.Net4_7.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet6_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet7_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet8_0.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.Net4_7.verified.txt create mode 100644 src/ReactiveUI.Tests/Utilities/XamlApiApprovalTests.Blend.Net4_7.verified.txt create mode 100644 src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.Designer.cs create mode 100644 src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.cs diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt index 72ceb2ac70..428d21b6ba 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt @@ -92,6 +92,18 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -104,6 +116,14 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt index 7ba5eb2379..a0cc917fca 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt @@ -92,6 +92,18 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -104,6 +116,14 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt index 8bf6d33d37..2e8f3eef9a 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt @@ -90,6 +90,18 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -102,6 +114,14 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt index af951628a1..5d90003771 100644 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt +++ b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt @@ -32,6 +32,11 @@ namespace ReactiveUI.Winforms public PlatformOperations() { } public string? GetOrientation() { } } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor where TViewModel : class { diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt index e576e83488..f8bac7dbb5 100644 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt +++ b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt @@ -32,6 +32,11 @@ namespace ReactiveUI.Winforms public PlatformOperations() { } public string? GetOrientation() { } } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor where TViewModel : class { diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt index ee964cd932..32abdea373 100644 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt +++ b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt @@ -32,6 +32,11 @@ namespace ReactiveUI.Winforms public PlatformOperations() { } public string? GetOrientation() { } } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor where TViewModel : class { diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt index 92e5468102..3b64ac1766 100644 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt +++ b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt @@ -30,6 +30,11 @@ namespace ReactiveUI.Winforms public PlatformOperations() { } public string? GetOrientation() { } } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor where TViewModel : class { diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalBase.cs b/src/ReactiveUI.Tests/Utilities/ApiApprovalBase.cs index cc2679fba1..82f7db6a88 100644 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalBase.cs +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalBase.cs @@ -16,16 +16,11 @@ namespace ReactiveUI.Tests; [UsesVerify] public abstract class ApiApprovalBase { - protected static Task CheckApproval(Assembly assembly, [CallerFilePath]string? filePath = null) + protected static Task CheckApproval(Assembly assembly) { - if (filePath is null) - { - return Task.CompletedTask; - } - var generatorOptions = new ApiGeneratorOptions { AllowNamespacePrefixes = ["ReactiveUI"] }; var apiText = assembly.GeneratePublicApi(generatorOptions); - return Verifier.Verify(apiText, null, filePath) + return Verifier.Verify(apiText) .UniqueForRuntimeAndVersion() .ScrubEmptyLines() .ScrubLines(l => diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt new file mode 100644 index 0000000000..428d21b6ba --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt @@ -0,0 +1,1069 @@ +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidX")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Blazor")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Drawing")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Maui")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.TestRunner.Android")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno.WinUI")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uwp")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.WinUI")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] +[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] +[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] +namespace ReactiveUI +{ + public static class AutoPersistHelper + { + public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ObservableCollection @this, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable ActOnEveryObject(this System.IObservable> @this, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable ActOnEveryObject(this TCollection collection, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject + where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } + public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.TimeSpan? interval = default) + where T : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where T : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this TCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject + where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } + } + public enum BindingDirection + { + OneWay = 0, + TwoWay = 1, + AsyncOneWay = 2, + } + public class ByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public ByteToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class CanActivateViewFetcher : ReactiveUI.IActivationForViewFetcher + { + public CanActivateViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public static class ChangeSetMixin + { + public static System.IObservable CountChanged(this System.IObservable changeSet) { } + public static System.IObservable> CountChanged(this System.IObservable> changeSet) + where T : notnull { } + public static bool HasCountChanged(this DynamicData.IChangeSet changeSet) { } + } + public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> + { + protected CombinedReactiveCommand(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public override System.IObservable CanExecute { get; } + public override System.IObservable IsExecuting { get; } + public override System.IObservable ThrownExceptions { get; } + protected override void Dispose(bool disposing) { } + public override System.IObservable> Execute() { } + public override System.IObservable> Execute(TParam parameter) { } + public override System.IDisposable Subscribe(System.IObserver> observer) { } + } + public static class CommandBinder + { + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + } + public class CommandBinderImplementation : Splat.IEnableLogger + { + public CommandBinderImplementation() { } + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + } + public static class ComparerChainingExtensions + { + public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector) { } + public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } + public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector) { } + public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } + } + public class ComponentModelTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public ComponentModelTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } + } + public class CreatesCommandBindingViaCommandParameter : ReactiveUI.ICreatesCommandBinding + { + public CreatesCommandBindingViaCommandParameter() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding + { + public CreatesCommandBindingViaEvent() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public DecimalToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public sealed class DefaultViewLocator : ReactiveUI.IViewLocator, Splat.IEnableLogger + { + public System.Func ViewModelToViewFunc { get; set; } + public ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null) { } + } + public static class DependencyResolverMixins + { + public static void InitializeReactiveUI(this Splat.IMutableDependencyResolver resolver, params ReactiveUI.RegistrationNamespace[] registrationNamespaces) { } + public static void RegisterViewsForViewModels(this Splat.IMutableDependencyResolver resolver, System.Reflection.Assembly assembly) { } + } + public class DoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public DoubleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class DummySuspensionDriver : ReactiveUI.ISuspensionDriver + { + public DummySuspensionDriver() { } + public System.IObservable InvalidateState() { } + public System.IObservable LoadState() { } + public System.IObservable SaveState(object state) { } + } + public class EqualityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public EqualityTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } + public static object? DoReferenceCast(object? from, System.Type targetType) { } + } + public static class ExpressionMixins + { + public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } + public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } + public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } + public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } + } + public interface IActivatableView { } + public interface IActivatableViewModel + { + ReactiveUI.ViewModelActivator Activator { get; } + } + public interface IActivationForViewFetcher + { + System.IObservable GetActivationForView(ReactiveUI.IActivatableView view); + int GetAffinityForView(System.Type view); + } + public interface IBindingTypeConverter : Splat.IEnableLogger + { + int GetAffinityForObjects(System.Type fromType, System.Type toType); + bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result); + } + public interface ICanActivate + { + System.IObservable Activated { get; } + System.IObservable Deactivated { get; } + } + public interface IComparerBuilder + { + System.Collections.Generic.IComparer OrderBy(System.Func selector); + System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer); + System.Collections.Generic.IComparer OrderByDescending(System.Func selector); + System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer); + } + public interface ICreatesCommandBinding + { + System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter); + System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); + int GetAffinityForObject(System.Type type, bool hasEventTarget); + } + public interface ICreatesObservableForProperty : Splat.IEnableLogger + { + int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); + System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); + } + public interface IHandleObservableErrors + { + System.IObservable ThrownExceptions { get; } + } + public interface IInteractionBinderImplementation : Splat.IEnableLogger + { + System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + } + public interface IInteractionContext + { + TInput Input { get; } + bool IsHandled { get; } + void SetOutput(TOutput output); + } + public interface IInteraction + { + System.IObservable Handle(TInput input); + System.IDisposable RegisterHandler(System.Action> handler); + System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler); + System.IDisposable RegisterHandler(System.Func, System.IObservable> handler); + } + public interface IMessageBus : Splat.IEnableLogger + { + bool IsRegistered(System.Type type, string? contract = null); + System.IObservable Listen(string? contract = null); + System.IObservable ListenIncludeLatest(string? contract = null); + System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null); + void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null); + void SendMessage(T message, string? contract = null); + } + public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public INPCObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public interface IObservedChange + { + System.Linq.Expressions.Expression? Expression { get; } + TSender Sender { get; } + TValue Value { get; } + } + public interface IOutputContext : ReactiveUI.IInteractionContext + { + TOutput GetOutput(); + } + public interface IPlatformOperations + { + string? GetOrientation(); + } + public interface IPropertyBinderImplementation : Splat.IEnableLogger + { + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TTarget : class; + ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + } + public interface IPropertyBindingHook + { + bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction); + } + public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public IROObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public interface IReactiveBinding : System.IDisposable + where out TView : ReactiveUI.IViewFor + { + System.IObservable Changed { get; } + ReactiveUI.BindingDirection Direction { get; } + TView View { get; } + System.Linq.Expressions.Expression ViewExpression { get; } + System.Linq.Expressions.Expression ViewModelExpression { get; } + } + public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, System.IDisposable + { + System.IObservable CanExecute { get; } + System.IObservable IsExecuting { get; } + } + public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable + { + System.IObservable Execute(); + System.IObservable Execute(TParam parameter); + } + public interface IReactiveNotifyPropertyChanged + { + System.IObservable> Changed { get; } + System.IObservable> Changing { get; } + System.IDisposable SuppressChangeNotifications(); + } + public interface IReactiveObject : Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + void RaisePropertyChanged(System.ComponentModel.PropertyChangedEventArgs args); + void RaisePropertyChanging(System.ComponentModel.PropertyChangingEventArgs args); + } + public static class IReactiveObjectExtensions + { + public static TRet RaiseAndSetIfChanged(this TObj reactiveObject, ref TRet backingField, TRet newValue, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) + where TObj : ReactiveUI.IReactiveObject { } + public static void RaisePropertyChanged(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) + where TSender : ReactiveUI.IReactiveObject { } + public static void RaisePropertyChanging(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) + where TSender : ReactiveUI.IReactiveObject { } + public static void SubscribePropertyChangedEvents(this TSender reactiveObject) + where TSender : ReactiveUI.IReactiveObject { } + public static void SubscribePropertyChangingEvents(this TSender reactiveObject) + where TSender : ReactiveUI.IReactiveObject { } + } + public interface IReactivePropertyChangedEventArgs + { + string? PropertyName { get; } + TSender Sender { get; } + } + public interface IRoutableViewModel : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + ReactiveUI.IScreen HostScreen { get; } + string? UrlPathSegment { get; } + } + public interface IScreen + { + ReactiveUI.RoutingState Router { get; } + } + public interface ISetMethodBindingConverter : Splat.IEnableLogger + { + int GetAffinityForObjects(System.Type? fromType, System.Type? toType); + object? PerformSet(object? toTarget, object? newValue, object?[]? arguments); + } + public interface ISuspensionDriver + { + System.IObservable InvalidateState(); + System.IObservable LoadState(); + System.IObservable SaveState(object state); + } + public interface ISuspensionHost : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + object? AppState { get; set; } + System.Func? CreateNewAppState { get; set; } + System.IObservable IsLaunchingNew { get; set; } + System.IObservable IsResuming { get; set; } + System.IObservable IsUnpausing { get; set; } + System.IObservable ShouldInvalidateState { get; set; } + System.IObservable ShouldPersistState { get; set; } + } + public interface IViewFor : ReactiveUI.IActivatableView + { + object? ViewModel { get; set; } + } + public interface IViewFor : ReactiveUI.IActivatableView, ReactiveUI.IViewFor + where T : class + { + T ViewModel { get; set; } + } + public interface IViewLocator : Splat.IEnableLogger + { + ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null); + } + public class IntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public IntegerToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class InteractionBinderImplementation : ReactiveUI.IInteractionBinderImplementation, Splat.IEnableLogger + { + public InteractionBinderImplementation() { } + public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public static class InteractionBindingMixins + { + public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public sealed class InteractionContext : ReactiveUI.IInteractionContext, ReactiveUI.IOutputContext + { + public TInput Input { get; } + public bool IsHandled { get; } + public TOutput GetOutput() { } + public void SetOutput(TOutput output) { } + } + public class Interaction : ReactiveUI.IInteraction + { + public Interaction(System.Reactive.Concurrency.IScheduler? handlerScheduler = null) { } + protected virtual ReactiveUI.IOutputContext GenerateContext(TInput input) { } + protected System.Func, System.IObservable>[] GetHandlers() { } + public virtual System.IObservable Handle(TInput input) { } + public System.IDisposable RegisterHandler(System.Action> handler) { } + public System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler) { } + public System.IDisposable RegisterHandler(System.Func, System.IObservable> handler) { } + } + public class LongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public LongToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class MessageBus : ReactiveUI.IMessageBus, Splat.IEnableLogger + { + public MessageBus() { } + public static ReactiveUI.IMessageBus Current { get; set; } + public bool IsRegistered(System.Type type, string? contract = null) { } + public System.IObservable Listen(string? contract = null) { } + public System.IObservable ListenIncludeLatest(string? contract = null) { } + public System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null) { } + public void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null) { } + public void SendMessage(T message, string? contract = null) { } + } + public class NullableByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableByteToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableDecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableDecimalToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableDoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableDoubleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableIntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableIntegerToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableLongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableLongToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableShortToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableSingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableSingleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public static class OAPHCreationHelperMixin + { + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + } + public sealed class ObservableAsPropertyHelper : ReactiveUI.IHandleObservableErrors, Splat.IEnableLogger, System.IDisposable + { + public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, System.Func? getInitialValue = null, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + public bool IsSubscribed { get; } + public System.IObservable ThrownExceptions { get; } + public T Value { get; } + public void Dispose() { } + public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + } + public static class ObservableFuncMixins + { + public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } + } + public static class ObservableLoggingMixin + { + public static System.IObservable Log(this System.IObservable @this, TObj logObject, string? message = null, System.Func? stringifier = null) + where TObj : Splat.IEnableLogger { } + public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.IObservable? next = null, string? message = null) + where TObj : Splat.IEnableLogger { } + public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.Func> next, string? message = null) + where TObj : Splat.IEnableLogger + where TException : System.Exception { } + } + public static class ObservableMixins + { + public static System.IObservable WhereNotNull(this System.IObservable observable) { } + } + public class ObservedChange : ReactiveUI.IObservedChange + { + public ObservedChange(TSender sender, System.Linq.Expressions.Expression? expression, TValue value) { } + public System.Linq.Expressions.Expression? Expression { get; } + public TSender Sender { get; } + public TValue Value { get; } + } + public static class ObservedChangedMixin + { + public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } + public static TValue GetValue(this ReactiveUI.IObservedChange item) { } + public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } + public static System.IObservable Value(this System.IObservable> item) { } + } + public static class OrderedComparer + { + public static ReactiveUI.IComparerBuilder For() { } + public static ReactiveUI.IComparerBuilder For(System.Collections.Generic.IEnumerable enumerable) { } + } + public static class OrderedComparer + { + public static System.Collections.Generic.IComparer OrderBy(System.Func selector) { } + public static System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer) { } + public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector) { } + public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer) { } + } + public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public POCOObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public static class PlatformRegistrationManager + { + public static void SetRegistrationNamespaces(params ReactiveUI.RegistrationNamespace[] namespaces) { } + } + public class PlatformRegistrations + { + public PlatformRegistrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + public class PropertyBinderImplementation : ReactiveUI.IPropertyBinderImplementation, Splat.IEnableLogger + { + public PropertyBinderImplementation() { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TTarget : class { } + public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public static class PropertyBindingMixins + { + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func vmToViewConverter, System.Func viewToVmConverter) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public static System.IDisposable BindTo(this System.IObservable @this, TTarget? target, System.Linq.Expressions.Expression> property, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TTarget : class { } + public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public static class ReactiveCommand + { + public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + } + public abstract class ReactiveCommandBase : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable, System.Windows.Input.ICommand + { + protected ReactiveCommandBase() { } + public abstract System.IObservable CanExecute { get; } + public abstract System.IObservable IsExecuting { get; } + public abstract System.IObservable ThrownExceptions { get; } + public void Dispose() { } + protected abstract void Dispose(bool disposing); + public abstract System.IObservable Execute(); + public abstract System.IObservable Execute(TParam parameter); + protected virtual bool ICommandCanExecute(object? parameter) { } + protected virtual void ICommandExecute(object? parameter) { } + protected void OnCanExecuteChanged(bool newValue) { } + public abstract System.IDisposable Subscribe(System.IObserver observer); + } + public static class ReactiveCommandMixins + { + public static System.IDisposable InvokeCommand(this System.IObservable item, System.Windows.Input.ICommand? command) { } + public static System.IDisposable InvokeCommand(this System.IObservable item, ReactiveUI.ReactiveCommandBase? command) { } + public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) + where TTarget : class { } + public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) + where TTarget : class { } + } + public class ReactiveCommand : ReactiveUI.ReactiveCommandBase + { + protected ReactiveCommand(System.Func> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler) { } + public override System.IObservable CanExecute { get; } + public override System.IObservable IsExecuting { get; } + public override System.IObservable ThrownExceptions { get; } + protected override void Dispose(bool disposing) { } + public override System.IObservable Execute() { } + public override System.IObservable Execute(TParam parameter) { } + public override System.IDisposable Subscribe(System.IObserver observer) { } + } + public static class ReactiveNotifyPropertyChangedMixin + { + public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange = false, bool skipInitial = true) { } + public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange = false) + where TSender : class { } + public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange = false, bool skipInitial = true, bool suppressWarnings = false) { } + } + [System.Runtime.Serialization.DataContract] + public class ReactiveObject : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public ReactiveObject() { } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changed { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changing { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable ThrownExceptions { get; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + public bool AreChangeNotificationsEnabled() { } + public System.IDisposable DelayChangeNotifications() { } + public System.IDisposable SuppressChangeNotifications() { } + } + public class ReactivePropertyChangedEventArgs : System.ComponentModel.PropertyChangedEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs + { + public ReactivePropertyChangedEventArgs(TSender sender, string propertyName) { } + public TSender Sender { get; } + } + public class ReactivePropertyChangingEventArgs : System.ComponentModel.PropertyChangingEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs + { + public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { } + public TSender Sender { get; } + } + [System.Runtime.Serialization.DataContract] + public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable + { + public ReactiveRecord() { } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changed { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changing { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable ThrownExceptions { get; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + public bool AreChangeNotificationsEnabled() { } + public System.IDisposable DelayChangeNotifications() { } + public System.IDisposable SuppressChangeNotifications() { } + } + public static class Reflection + { + public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } + public static System.Type GetEventArgsTypeForEvent(System.Type type, string? eventName) { } + public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } + public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } + public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } + public static System.Action? GetValueSetterOrThrow(System.Reflection.MemberInfo? member) { } + public static bool IsStatic(this System.Reflection.PropertyInfo item) { } + public static System.Type? ReallyFindType(string? type, bool throwOnFailure) { } + public static System.Linq.Expressions.Expression Rewrite(System.Linq.Expressions.Expression? expression) { } + public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } + public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } + public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } + public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } + } + public enum RegistrationNamespace + { + None = 0, + XamForms = 1, + Winforms = 2, + Wpf = 3, + Uno = 4, + UnoWinUI = 5, + Blazor = 6, + Drawing = 7, + Avalonia = 8, + Maui = 9, + Uwp = 10, + WinUI = 11, + } + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + public static class RoutableViewModelMixin + { + public static System.IDisposable WhenNavigatedTo(this ReactiveUI.IRoutableViewModel item, System.Func onNavigatedTo) { } + public static System.IObservable WhenNavigatedToObservable(this ReactiveUI.IRoutableViewModel item) { } + public static System.IObservable WhenNavigatingFromObservable(this ReactiveUI.IRoutableViewModel item) { } + } + [System.Runtime.Serialization.DataContract] + public class RoutingState : ReactiveUI.ReactiveObject + { + public RoutingState(System.Reactive.Concurrency.IScheduler? scheduler = null) { } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable CurrentViewModel { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public ReactiveUI.ReactiveCommand Navigate { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public ReactiveUI.ReactiveCommand NavigateAndReset { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public ReactiveUI.ReactiveCommand NavigateBack { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> NavigationChanged { get; set; } + [System.Runtime.Serialization.DataMember] + [System.Text.Json.Serialization.JsonRequired] + public System.Collections.ObjectModel.ObservableCollection NavigationStack { get; set; } + } + public static class RoutingStateMixins + { + public static T? FindViewModelInStack(this ReactiveUI.RoutingState item) + where T : ReactiveUI.IRoutableViewModel { } + public static ReactiveUI.IRoutableViewModel? GetCurrentViewModel(this ReactiveUI.RoutingState item) { } + } + public static class RxApp + { + public const int BigCacheLimit = 256; + public const int SmallCacheLimit = 64; + public static System.IObserver DefaultExceptionHandler { get; set; } + public static System.Reactive.Concurrency.IScheduler MainThreadScheduler { get; set; } + public static bool SuppressViewCommandBindingMessage { get; set; } + public static ReactiveUI.ISuspensionHost SuspensionHost { get; set; } + public static System.Reactive.Concurrency.IScheduler TaskpoolScheduler { get; set; } + } + public class ScheduledSubject : System.IDisposable, System.IObservable, System.IObserver, System.Reactive.Subjects.ISubject, System.Reactive.Subjects.ISubject + { + public ScheduledSubject(System.Reactive.Concurrency.IScheduler scheduler, System.IObserver? defaultObserver = null, System.Reactive.Subjects.ISubject? defaultSubject = null) { } + public void Dispose() { } + protected virtual void Dispose(bool isDisposing) { } + public void OnCompleted() { } + public void OnError(System.Exception error) { } + public void OnNext(T value) { } + public System.IDisposable Subscribe(System.IObserver observer) { } + } + public class ShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public ShortToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + [System.AttributeUsage(System.AttributeTargets.Class)] + public sealed class SingleInstanceViewAttribute : System.Attribute + { + public SingleInstanceViewAttribute() { } + } + public class SingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public SingleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class StringConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public StringConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } + } + public static class SuspensionHostExtensions + { + public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } + public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) + where T : class { } + public static System.IDisposable SetupDefaultSuspendResume(this ReactiveUI.ISuspensionHost item, ReactiveUI.ISuspensionDriver? driver = null) { } + } + public enum TriggerUpdate + { + ViewToViewModel = 0, + ViewModelToView = 1, + } + [System.Serializable] + public class UnhandledErrorException : System.Exception + { + public UnhandledErrorException() { } + public UnhandledErrorException(string message) { } + protected UnhandledErrorException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } + public UnhandledErrorException(string message, System.Exception innerException) { } + } + [System.Serializable] + public class UnhandledInteractionException : System.Exception + { + public UnhandledInteractionException() { } + public UnhandledInteractionException(string message) { } + public UnhandledInteractionException(ReactiveUI.Interaction interaction, TInput input) { } + protected UnhandledInteractionException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } + public UnhandledInteractionException(string message, System.Exception innerException) { } + public TInput Input { get; } + public ReactiveUI.Interaction? Interaction { get; } + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + [System.AttributeUsage(System.AttributeTargets.Class)] + public sealed class ViewContractAttribute : System.Attribute + { + public ViewContractAttribute(string contract) { } + public string Contract { get; } + } + public static class ViewForMixins + { + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block) { } + public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action> block) { } + public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action block) { } + public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Func> block) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block, ReactiveUI.IViewFor view) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action block, ReactiveUI.IViewFor? view = null) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block, ReactiveUI.IViewFor? view) { } + } + public static class ViewLocator + { + public static ReactiveUI.IViewLocator Current { get; } + } + [System.Serializable] + public class ViewLocatorNotFoundException : System.Exception + { + public ViewLocatorNotFoundException() { } + public ViewLocatorNotFoundException(string message) { } + protected ViewLocatorNotFoundException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } + public ViewLocatorNotFoundException(string message, System.Exception innerException) { } + } + public sealed class ViewModelActivator : System.IDisposable + { + public ViewModelActivator() { } + public System.IObservable Activated { get; } + public System.IObservable Deactivated { get; } + public System.IDisposable Activate() { } + public void Deactivate(bool ignoreRefCount = false) { } + public void Dispose() { } + } + public class WaitForDispatcherScheduler : System.Reactive.Concurrency.IScheduler + { + public WaitForDispatcherScheduler(System.Func schedulerFactory) { } + public System.DateTimeOffset Now { get; } + public System.IDisposable Schedule(TState state, System.Func action) { } + public System.IDisposable Schedule(TState state, System.DateTimeOffset dueTime, System.Func action) { } + public System.IDisposable Schedule(TState state, System.TimeSpan dueTime, System.Func action) { } + } + public static class WhenAnyMixin + { + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Linq.Expressions.Expression? property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func selector) { } + } + public static class WhenAnyObservableMixin + { + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12, System.Func selector) + where TSender : class { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt new file mode 100644 index 0000000000..a0cc917fca --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt @@ -0,0 +1,1069 @@ +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidX")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Blazor")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Drawing")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Maui")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.TestRunner.Android")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno.WinUI")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uwp")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.WinUI")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] +[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName=".NET 7.0")] +[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] +namespace ReactiveUI +{ + public static class AutoPersistHelper + { + public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ObservableCollection @this, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable ActOnEveryObject(this System.IObservable> @this, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable ActOnEveryObject(this TCollection collection, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject + where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } + public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.TimeSpan? interval = default) + where T : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where T : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this TCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject + where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } + } + public enum BindingDirection + { + OneWay = 0, + TwoWay = 1, + AsyncOneWay = 2, + } + public class ByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public ByteToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class CanActivateViewFetcher : ReactiveUI.IActivationForViewFetcher + { + public CanActivateViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public static class ChangeSetMixin + { + public static System.IObservable CountChanged(this System.IObservable changeSet) { } + public static System.IObservable> CountChanged(this System.IObservable> changeSet) + where T : notnull { } + public static bool HasCountChanged(this DynamicData.IChangeSet changeSet) { } + } + public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> + { + protected CombinedReactiveCommand(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public override System.IObservable CanExecute { get; } + public override System.IObservable IsExecuting { get; } + public override System.IObservable ThrownExceptions { get; } + protected override void Dispose(bool disposing) { } + public override System.IObservable> Execute() { } + public override System.IObservable> Execute(TParam parameter) { } + public override System.IDisposable Subscribe(System.IObserver> observer) { } + } + public static class CommandBinder + { + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + } + public class CommandBinderImplementation : Splat.IEnableLogger + { + public CommandBinderImplementation() { } + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + } + public static class ComparerChainingExtensions + { + public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector) { } + public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } + public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector) { } + public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } + } + public class ComponentModelTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public ComponentModelTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } + } + public class CreatesCommandBindingViaCommandParameter : ReactiveUI.ICreatesCommandBinding + { + public CreatesCommandBindingViaCommandParameter() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding + { + public CreatesCommandBindingViaEvent() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public DecimalToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public sealed class DefaultViewLocator : ReactiveUI.IViewLocator, Splat.IEnableLogger + { + public System.Func ViewModelToViewFunc { get; set; } + public ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null) { } + } + public static class DependencyResolverMixins + { + public static void InitializeReactiveUI(this Splat.IMutableDependencyResolver resolver, params ReactiveUI.RegistrationNamespace[] registrationNamespaces) { } + public static void RegisterViewsForViewModels(this Splat.IMutableDependencyResolver resolver, System.Reflection.Assembly assembly) { } + } + public class DoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public DoubleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class DummySuspensionDriver : ReactiveUI.ISuspensionDriver + { + public DummySuspensionDriver() { } + public System.IObservable InvalidateState() { } + public System.IObservable LoadState() { } + public System.IObservable SaveState(object state) { } + } + public class EqualityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public EqualityTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } + public static object? DoReferenceCast(object? from, System.Type targetType) { } + } + public static class ExpressionMixins + { + public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } + public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } + public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } + public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } + } + public interface IActivatableView { } + public interface IActivatableViewModel + { + ReactiveUI.ViewModelActivator Activator { get; } + } + public interface IActivationForViewFetcher + { + System.IObservable GetActivationForView(ReactiveUI.IActivatableView view); + int GetAffinityForView(System.Type view); + } + public interface IBindingTypeConverter : Splat.IEnableLogger + { + int GetAffinityForObjects(System.Type fromType, System.Type toType); + bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result); + } + public interface ICanActivate + { + System.IObservable Activated { get; } + System.IObservable Deactivated { get; } + } + public interface IComparerBuilder + { + System.Collections.Generic.IComparer OrderBy(System.Func selector); + System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer); + System.Collections.Generic.IComparer OrderByDescending(System.Func selector); + System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer); + } + public interface ICreatesCommandBinding + { + System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter); + System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); + int GetAffinityForObject(System.Type type, bool hasEventTarget); + } + public interface ICreatesObservableForProperty : Splat.IEnableLogger + { + int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); + System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); + } + public interface IHandleObservableErrors + { + System.IObservable ThrownExceptions { get; } + } + public interface IInteractionBinderImplementation : Splat.IEnableLogger + { + System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + } + public interface IInteractionContext + { + TInput Input { get; } + bool IsHandled { get; } + void SetOutput(TOutput output); + } + public interface IInteraction + { + System.IObservable Handle(TInput input); + System.IDisposable RegisterHandler(System.Action> handler); + System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler); + System.IDisposable RegisterHandler(System.Func, System.IObservable> handler); + } + public interface IMessageBus : Splat.IEnableLogger + { + bool IsRegistered(System.Type type, string? contract = null); + System.IObservable Listen(string? contract = null); + System.IObservable ListenIncludeLatest(string? contract = null); + System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null); + void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null); + void SendMessage(T message, string? contract = null); + } + public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public INPCObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public interface IObservedChange + { + System.Linq.Expressions.Expression? Expression { get; } + TSender Sender { get; } + TValue Value { get; } + } + public interface IOutputContext : ReactiveUI.IInteractionContext + { + TOutput GetOutput(); + } + public interface IPlatformOperations + { + string? GetOrientation(); + } + public interface IPropertyBinderImplementation : Splat.IEnableLogger + { + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TTarget : class; + ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor; + } + public interface IPropertyBindingHook + { + bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction); + } + public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public IROObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public interface IReactiveBinding : System.IDisposable + where out TView : ReactiveUI.IViewFor + { + System.IObservable Changed { get; } + ReactiveUI.BindingDirection Direction { get; } + TView View { get; } + System.Linq.Expressions.Expression ViewExpression { get; } + System.Linq.Expressions.Expression ViewModelExpression { get; } + } + public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, System.IDisposable + { + System.IObservable CanExecute { get; } + System.IObservable IsExecuting { get; } + } + public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable + { + System.IObservable Execute(); + System.IObservable Execute(TParam parameter); + } + public interface IReactiveNotifyPropertyChanged + { + System.IObservable> Changed { get; } + System.IObservable> Changing { get; } + System.IDisposable SuppressChangeNotifications(); + } + public interface IReactiveObject : Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + void RaisePropertyChanged(System.ComponentModel.PropertyChangedEventArgs args); + void RaisePropertyChanging(System.ComponentModel.PropertyChangingEventArgs args); + } + public static class IReactiveObjectExtensions + { + public static TRet RaiseAndSetIfChanged(this TObj reactiveObject, ref TRet backingField, TRet newValue, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) + where TObj : ReactiveUI.IReactiveObject { } + public static void RaisePropertyChanged(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) + where TSender : ReactiveUI.IReactiveObject { } + public static void RaisePropertyChanging(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) + where TSender : ReactiveUI.IReactiveObject { } + public static void SubscribePropertyChangedEvents(this TSender reactiveObject) + where TSender : ReactiveUI.IReactiveObject { } + public static void SubscribePropertyChangingEvents(this TSender reactiveObject) + where TSender : ReactiveUI.IReactiveObject { } + } + public interface IReactivePropertyChangedEventArgs + { + string? PropertyName { get; } + TSender Sender { get; } + } + public interface IRoutableViewModel : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + ReactiveUI.IScreen HostScreen { get; } + string? UrlPathSegment { get; } + } + public interface IScreen + { + ReactiveUI.RoutingState Router { get; } + } + public interface ISetMethodBindingConverter : Splat.IEnableLogger + { + int GetAffinityForObjects(System.Type? fromType, System.Type? toType); + object? PerformSet(object? toTarget, object? newValue, object?[]? arguments); + } + public interface ISuspensionDriver + { + System.IObservable InvalidateState(); + System.IObservable LoadState(); + System.IObservable SaveState(object state); + } + public interface ISuspensionHost : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + object? AppState { get; set; } + System.Func? CreateNewAppState { get; set; } + System.IObservable IsLaunchingNew { get; set; } + System.IObservable IsResuming { get; set; } + System.IObservable IsUnpausing { get; set; } + System.IObservable ShouldInvalidateState { get; set; } + System.IObservable ShouldPersistState { get; set; } + } + public interface IViewFor : ReactiveUI.IActivatableView + { + object? ViewModel { get; set; } + } + public interface IViewFor : ReactiveUI.IActivatableView, ReactiveUI.IViewFor + where T : class + { + T ViewModel { get; set; } + } + public interface IViewLocator : Splat.IEnableLogger + { + ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null); + } + public class IntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public IntegerToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class InteractionBinderImplementation : ReactiveUI.IInteractionBinderImplementation, Splat.IEnableLogger + { + public InteractionBinderImplementation() { } + public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public static class InteractionBindingMixins + { + public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public sealed class InteractionContext : ReactiveUI.IInteractionContext, ReactiveUI.IOutputContext + { + public TInput Input { get; } + public bool IsHandled { get; } + public TOutput GetOutput() { } + public void SetOutput(TOutput output) { } + } + public class Interaction : ReactiveUI.IInteraction + { + public Interaction(System.Reactive.Concurrency.IScheduler? handlerScheduler = null) { } + protected virtual ReactiveUI.IOutputContext GenerateContext(TInput input) { } + protected System.Func, System.IObservable>[] GetHandlers() { } + public virtual System.IObservable Handle(TInput input) { } + public System.IDisposable RegisterHandler(System.Action> handler) { } + public System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler) { } + public System.IDisposable RegisterHandler(System.Func, System.IObservable> handler) { } + } + public class LongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public LongToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class MessageBus : ReactiveUI.IMessageBus, Splat.IEnableLogger + { + public MessageBus() { } + public static ReactiveUI.IMessageBus Current { get; set; } + public bool IsRegistered(System.Type type, string? contract = null) { } + public System.IObservable Listen(string? contract = null) { } + public System.IObservable ListenIncludeLatest(string? contract = null) { } + public System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null) { } + public void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null) { } + public void SendMessage(T message, string? contract = null) { } + } + public class NullableByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableByteToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableDecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableDecimalToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableDoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableDoubleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableIntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableIntegerToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableLongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableLongToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableShortToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableSingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableSingleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public static class OAPHCreationHelperMixin + { + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + } + public sealed class ObservableAsPropertyHelper : ReactiveUI.IHandleObservableErrors, Splat.IEnableLogger, System.IDisposable + { + public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, System.Func? getInitialValue = null, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + public bool IsSubscribed { get; } + public System.IObservable ThrownExceptions { get; } + public T Value { get; } + public void Dispose() { } + public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + } + public static class ObservableFuncMixins + { + public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } + } + public static class ObservableLoggingMixin + { + public static System.IObservable Log(this System.IObservable @this, TObj logObject, string? message = null, System.Func? stringifier = null) + where TObj : Splat.IEnableLogger { } + public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.IObservable? next = null, string? message = null) + where TObj : Splat.IEnableLogger { } + public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.Func> next, string? message = null) + where TObj : Splat.IEnableLogger + where TException : System.Exception { } + } + public static class ObservableMixins + { + public static System.IObservable WhereNotNull(this System.IObservable observable) { } + } + public class ObservedChange : ReactiveUI.IObservedChange + { + public ObservedChange(TSender sender, System.Linq.Expressions.Expression? expression, TValue value) { } + public System.Linq.Expressions.Expression? Expression { get; } + public TSender Sender { get; } + public TValue Value { get; } + } + public static class ObservedChangedMixin + { + public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } + public static TValue GetValue(this ReactiveUI.IObservedChange item) { } + public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } + public static System.IObservable Value(this System.IObservable> item) { } + } + public static class OrderedComparer + { + public static ReactiveUI.IComparerBuilder For() { } + public static ReactiveUI.IComparerBuilder For(System.Collections.Generic.IEnumerable enumerable) { } + } + public static class OrderedComparer + { + public static System.Collections.Generic.IComparer OrderBy(System.Func selector) { } + public static System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer) { } + public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector) { } + public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer) { } + } + public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public POCOObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public static class PlatformRegistrationManager + { + public static void SetRegistrationNamespaces(params ReactiveUI.RegistrationNamespace[] namespaces) { } + } + public class PlatformRegistrations + { + public PlatformRegistrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + public class PropertyBinderImplementation : ReactiveUI.IPropertyBinderImplementation, Splat.IEnableLogger + { + public PropertyBinderImplementation() { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TTarget : class { } + public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public static class PropertyBindingMixins + { + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func vmToViewConverter, System.Func viewToVmConverter) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public static System.IDisposable BindTo(this System.IObservable @this, TTarget? target, System.Linq.Expressions.Expression> property, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TTarget : class { } + public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public static class ReactiveCommand + { + public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + } + public abstract class ReactiveCommandBase : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable, System.Windows.Input.ICommand + { + protected ReactiveCommandBase() { } + public abstract System.IObservable CanExecute { get; } + public abstract System.IObservable IsExecuting { get; } + public abstract System.IObservable ThrownExceptions { get; } + public void Dispose() { } + protected abstract void Dispose(bool disposing); + public abstract System.IObservable Execute(); + public abstract System.IObservable Execute(TParam parameter); + protected virtual bool ICommandCanExecute(object? parameter) { } + protected virtual void ICommandExecute(object? parameter) { } + protected void OnCanExecuteChanged(bool newValue) { } + public abstract System.IDisposable Subscribe(System.IObserver observer); + } + public static class ReactiveCommandMixins + { + public static System.IDisposable InvokeCommand(this System.IObservable item, System.Windows.Input.ICommand? command) { } + public static System.IDisposable InvokeCommand(this System.IObservable item, ReactiveUI.ReactiveCommandBase? command) { } + public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) + where TTarget : class { } + public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) + where TTarget : class { } + } + public class ReactiveCommand : ReactiveUI.ReactiveCommandBase + { + protected ReactiveCommand(System.Func> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler) { } + public override System.IObservable CanExecute { get; } + public override System.IObservable IsExecuting { get; } + public override System.IObservable ThrownExceptions { get; } + protected override void Dispose(bool disposing) { } + public override System.IObservable Execute() { } + public override System.IObservable Execute(TParam parameter) { } + public override System.IDisposable Subscribe(System.IObserver observer) { } + } + public static class ReactiveNotifyPropertyChangedMixin + { + public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange = false, bool skipInitial = true) { } + public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange = false) + where TSender : class { } + public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange = false, bool skipInitial = true, bool suppressWarnings = false) { } + } + [System.Runtime.Serialization.DataContract] + public class ReactiveObject : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public ReactiveObject() { } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changed { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changing { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable ThrownExceptions { get; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + public bool AreChangeNotificationsEnabled() { } + public System.IDisposable DelayChangeNotifications() { } + public System.IDisposable SuppressChangeNotifications() { } + } + public class ReactivePropertyChangedEventArgs : System.ComponentModel.PropertyChangedEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs + { + public ReactivePropertyChangedEventArgs(TSender sender, string propertyName) { } + public TSender Sender { get; } + } + public class ReactivePropertyChangingEventArgs : System.ComponentModel.PropertyChangingEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs + { + public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { } + public TSender Sender { get; } + } + [System.Runtime.Serialization.DataContract] + public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable + { + public ReactiveRecord() { } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changed { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changing { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable ThrownExceptions { get; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + public bool AreChangeNotificationsEnabled() { } + public System.IDisposable DelayChangeNotifications() { } + public System.IDisposable SuppressChangeNotifications() { } + } + public static class Reflection + { + public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } + public static System.Type GetEventArgsTypeForEvent(System.Type type, string? eventName) { } + public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } + public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } + public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } + public static System.Action? GetValueSetterOrThrow(System.Reflection.MemberInfo? member) { } + public static bool IsStatic(this System.Reflection.PropertyInfo item) { } + public static System.Type? ReallyFindType(string? type, bool throwOnFailure) { } + public static System.Linq.Expressions.Expression Rewrite(System.Linq.Expressions.Expression? expression) { } + public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } + public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } + public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } + public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } + } + public enum RegistrationNamespace + { + None = 0, + XamForms = 1, + Winforms = 2, + Wpf = 3, + Uno = 4, + UnoWinUI = 5, + Blazor = 6, + Drawing = 7, + Avalonia = 8, + Maui = 9, + Uwp = 10, + WinUI = 11, + } + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + public static class RoutableViewModelMixin + { + public static System.IDisposable WhenNavigatedTo(this ReactiveUI.IRoutableViewModel item, System.Func onNavigatedTo) { } + public static System.IObservable WhenNavigatedToObservable(this ReactiveUI.IRoutableViewModel item) { } + public static System.IObservable WhenNavigatingFromObservable(this ReactiveUI.IRoutableViewModel item) { } + } + [System.Runtime.Serialization.DataContract] + public class RoutingState : ReactiveUI.ReactiveObject + { + public RoutingState(System.Reactive.Concurrency.IScheduler? scheduler = null) { } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable CurrentViewModel { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public ReactiveUI.ReactiveCommand Navigate { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public ReactiveUI.ReactiveCommand NavigateAndReset { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public ReactiveUI.ReactiveCommand NavigateBack { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> NavigationChanged { get; set; } + [System.Runtime.Serialization.DataMember] + [System.Text.Json.Serialization.JsonRequired] + public System.Collections.ObjectModel.ObservableCollection NavigationStack { get; set; } + } + public static class RoutingStateMixins + { + public static T? FindViewModelInStack(this ReactiveUI.RoutingState item) + where T : ReactiveUI.IRoutableViewModel { } + public static ReactiveUI.IRoutableViewModel? GetCurrentViewModel(this ReactiveUI.RoutingState item) { } + } + public static class RxApp + { + public const int BigCacheLimit = 256; + public const int SmallCacheLimit = 64; + public static System.IObserver DefaultExceptionHandler { get; set; } + public static System.Reactive.Concurrency.IScheduler MainThreadScheduler { get; set; } + public static bool SuppressViewCommandBindingMessage { get; set; } + public static ReactiveUI.ISuspensionHost SuspensionHost { get; set; } + public static System.Reactive.Concurrency.IScheduler TaskpoolScheduler { get; set; } + } + public class ScheduledSubject : System.IDisposable, System.IObservable, System.IObserver, System.Reactive.Subjects.ISubject, System.Reactive.Subjects.ISubject + { + public ScheduledSubject(System.Reactive.Concurrency.IScheduler scheduler, System.IObserver? defaultObserver = null, System.Reactive.Subjects.ISubject? defaultSubject = null) { } + public void Dispose() { } + protected virtual void Dispose(bool isDisposing) { } + public void OnCompleted() { } + public void OnError(System.Exception error) { } + public void OnNext(T value) { } + public System.IDisposable Subscribe(System.IObserver observer) { } + } + public class ShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public ShortToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + [System.AttributeUsage(System.AttributeTargets.Class)] + public sealed class SingleInstanceViewAttribute : System.Attribute + { + public SingleInstanceViewAttribute() { } + } + public class SingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public SingleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class StringConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public StringConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } + } + public static class SuspensionHostExtensions + { + public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } + public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) + where T : class { } + public static System.IDisposable SetupDefaultSuspendResume(this ReactiveUI.ISuspensionHost item, ReactiveUI.ISuspensionDriver? driver = null) { } + } + public enum TriggerUpdate + { + ViewToViewModel = 0, + ViewModelToView = 1, + } + [System.Serializable] + public class UnhandledErrorException : System.Exception + { + public UnhandledErrorException() { } + public UnhandledErrorException(string message) { } + protected UnhandledErrorException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } + public UnhandledErrorException(string message, System.Exception innerException) { } + } + [System.Serializable] + public class UnhandledInteractionException : System.Exception + { + public UnhandledInteractionException() { } + public UnhandledInteractionException(string message) { } + public UnhandledInteractionException(ReactiveUI.Interaction interaction, TInput input) { } + protected UnhandledInteractionException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } + public UnhandledInteractionException(string message, System.Exception innerException) { } + public TInput Input { get; } + public ReactiveUI.Interaction? Interaction { get; } + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + [System.AttributeUsage(System.AttributeTargets.Class)] + public sealed class ViewContractAttribute : System.Attribute + { + public ViewContractAttribute(string contract) { } + public string Contract { get; } + } + public static class ViewForMixins + { + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block) { } + public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action> block) { } + public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action block) { } + public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Func> block) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block, ReactiveUI.IViewFor view) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action block, ReactiveUI.IViewFor? view = null) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block, ReactiveUI.IViewFor? view) { } + } + public static class ViewLocator + { + public static ReactiveUI.IViewLocator Current { get; } + } + [System.Serializable] + public class ViewLocatorNotFoundException : System.Exception + { + public ViewLocatorNotFoundException() { } + public ViewLocatorNotFoundException(string message) { } + protected ViewLocatorNotFoundException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } + public ViewLocatorNotFoundException(string message, System.Exception innerException) { } + } + public sealed class ViewModelActivator : System.IDisposable + { + public ViewModelActivator() { } + public System.IObservable Activated { get; } + public System.IObservable Deactivated { get; } + public System.IDisposable Activate() { } + public void Deactivate(bool ignoreRefCount = false) { } + public void Dispose() { } + } + public class WaitForDispatcherScheduler : System.Reactive.Concurrency.IScheduler + { + public WaitForDispatcherScheduler(System.Func schedulerFactory) { } + public System.DateTimeOffset Now { get; } + public System.IDisposable Schedule(TState state, System.Func action) { } + public System.IDisposable Schedule(TState state, System.DateTimeOffset dueTime, System.Func action) { } + public System.IDisposable Schedule(TState state, System.TimeSpan dueTime, System.Func action) { } + } + public static class WhenAnyMixin + { + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Linq.Expressions.Expression? property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func selector) { } + } + public static class WhenAnyObservableMixin + { + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12, System.Func selector) + where TSender : class { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt new file mode 100644 index 0000000000..2e8f3eef9a --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt @@ -0,0 +1,1074 @@ +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidX")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Blazor")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Drawing")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Maui")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.TestRunner.Android")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno.WinUI")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uwp")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.WinUI")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] +namespace ReactiveUI +{ + public static class AutoPersistHelper + { + public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ObservableCollection @this, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable ActOnEveryObject(this System.IObservable> @this, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable ActOnEveryObject(this TCollection collection, System.Action onAdd, System.Action onRemove) + where TItem : ReactiveUI.IReactiveObject + where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } + public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.TimeSpan? interval = default) + where T : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where T : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject { } + public static System.IDisposable AutoPersistCollection(this TCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) + where TItem : ReactiveUI.IReactiveObject + where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } + } + public enum BindingDirection + { + OneWay = 0, + TwoWay = 1, + AsyncOneWay = 2, + } + public class ByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public ByteToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class CanActivateViewFetcher : ReactiveUI.IActivationForViewFetcher + { + public CanActivateViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public static class ChangeSetMixin + { + public static System.IObservable CountChanged(this System.IObservable changeSet) { } + public static System.IObservable> CountChanged(this System.IObservable> changeSet) + where T : notnull { } + public static bool HasCountChanged(this DynamicData.IChangeSet changeSet) { } + } + public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> + { + protected CombinedReactiveCommand(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public override System.IObservable CanExecute { get; } + public override System.IObservable IsExecuting { get; } + public override System.IObservable ThrownExceptions { get; } + protected override void Dispose(bool disposing) { } + public override System.IObservable> Execute() { } + public override System.IObservable> Execute(TParam parameter) { } + public override System.IDisposable Subscribe(System.IObserver> observer) { } + } + public static class CommandBinder + { + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + } + public class CommandBinderImplementation : Splat.IEnableLogger + { + public CommandBinderImplementation() { } + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + } + public static class ComparerChainingExtensions + { + public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector) { } + public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } + public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector) { } + public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } + } + public class ComponentModelTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public ComponentModelTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } + } + public class CreatesCommandBindingViaCommandParameter : ReactiveUI.ICreatesCommandBinding + { + public CreatesCommandBindingViaCommandParameter() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding + { + public CreatesCommandBindingViaEvent() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public DecimalToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public sealed class DefaultViewLocator : ReactiveUI.IViewLocator, Splat.IEnableLogger + { + public System.Func ViewModelToViewFunc { get; set; } + public ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null) { } + } + public static class DependencyResolverMixins + { + public static void InitializeReactiveUI(this Splat.IMutableDependencyResolver resolver, params ReactiveUI.RegistrationNamespace[] registrationNamespaces) { } + public static void RegisterViewsForViewModels(this Splat.IMutableDependencyResolver resolver, System.Reflection.Assembly assembly) { } + } + public class DoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public DoubleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class DummySuspensionDriver : ReactiveUI.ISuspensionDriver + { + public DummySuspensionDriver() { } + public System.IObservable InvalidateState() { } + public System.IObservable LoadState() { } + public System.IObservable SaveState(object state) { } + } + public class EqualityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public EqualityTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } + public static object? DoReferenceCast(object? from, System.Type targetType) { } + } + public static class ExpressionMixins + { + public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } + public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } + public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } + public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } + } + public interface IActivatableView { } + public interface IActivatableViewModel + { + ReactiveUI.ViewModelActivator Activator { get; } + } + public interface IActivationForViewFetcher + { + System.IObservable GetActivationForView(ReactiveUI.IActivatableView view); + int GetAffinityForView(System.Type view); + } + public interface IBindingTypeConverter : Splat.IEnableLogger + { + int GetAffinityForObjects(System.Type fromType, System.Type toType); + bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result); + } + public interface ICanActivate + { + System.IObservable Activated { get; } + System.IObservable Deactivated { get; } + } + public interface IComparerBuilder + { + System.Collections.Generic.IComparer OrderBy(System.Func selector); + System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer); + System.Collections.Generic.IComparer OrderByDescending(System.Func selector); + System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer); + } + public interface ICreatesCommandBinding + { + System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter); + System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); + int GetAffinityForObject(System.Type type, bool hasEventTarget); + } + public interface ICreatesObservableForProperty : Splat.IEnableLogger + { + int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); + System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); + } + public interface IHandleObservableErrors + { + System.IObservable ThrownExceptions { get; } + } + public interface IInteractionBinderImplementation : Splat.IEnableLogger + { + System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor + ; + System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor + ; + } + public interface IInteractionContext + { + TInput Input { get; } + bool IsHandled { get; } + void SetOutput(TOutput output); + } + public interface IInteraction + { + System.IObservable Handle(TInput input); + System.IDisposable RegisterHandler(System.Action> handler); + System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler); + System.IDisposable RegisterHandler(System.Func, System.IObservable> handler); + } + public interface IMessageBus : Splat.IEnableLogger + { + bool IsRegistered(System.Type type, string? contract = null); + System.IObservable Listen(string? contract = null); + System.IObservable ListenIncludeLatest(string? contract = null); + System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null); + void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null); + void SendMessage(T message, string? contract = null); + } + public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public INPCObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public interface IObservedChange + { + System.Linq.Expressions.Expression? Expression { get; } + TSender Sender { get; } + TValue Value { get; } + } + public interface IOutputContext : ReactiveUI.IInteractionContext + { + TOutput GetOutput(); + } + public interface IPlatformOperations + { + string? GetOrientation(); + } + public interface IPropertyBinderImplementation : Splat.IEnableLogger + { + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor + ; + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor + ; + System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TTarget : class + ; + ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor + ; + ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor + ; + } + public interface IPropertyBindingHook + { + bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction); + } + public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public IROObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public interface IReactiveBinding : System.IDisposable + where out TView : ReactiveUI.IViewFor + { + System.IObservable Changed { get; } + ReactiveUI.BindingDirection Direction { get; } + TView View { get; } + System.Linq.Expressions.Expression ViewExpression { get; } + System.Linq.Expressions.Expression ViewModelExpression { get; } + } + public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, System.IDisposable + { + System.IObservable CanExecute { get; } + System.IObservable IsExecuting { get; } + } + public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable + { + System.IObservable Execute(); + System.IObservable Execute(TParam parameter); + } + public interface IReactiveNotifyPropertyChanged + { + System.IObservable> Changed { get; } + System.IObservable> Changing { get; } + System.IDisposable SuppressChangeNotifications(); + } + public interface IReactiveObject : Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + void RaisePropertyChanged(System.ComponentModel.PropertyChangedEventArgs args); + void RaisePropertyChanging(System.ComponentModel.PropertyChangingEventArgs args); + } + public static class IReactiveObjectExtensions + { + public static TRet RaiseAndSetIfChanged(this TObj reactiveObject, ref TRet backingField, TRet newValue, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) + where TObj : ReactiveUI.IReactiveObject { } + public static void RaisePropertyChanged(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) + where TSender : ReactiveUI.IReactiveObject { } + public static void RaisePropertyChanging(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) + where TSender : ReactiveUI.IReactiveObject { } + public static void SubscribePropertyChangedEvents(this TSender reactiveObject) + where TSender : ReactiveUI.IReactiveObject { } + public static void SubscribePropertyChangingEvents(this TSender reactiveObject) + where TSender : ReactiveUI.IReactiveObject { } + } + public interface IReactivePropertyChangedEventArgs + { + string? PropertyName { get; } + TSender Sender { get; } + } + public interface IRoutableViewModel : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + ReactiveUI.IScreen HostScreen { get; } + string? UrlPathSegment { get; } + } + public interface IScreen + { + ReactiveUI.RoutingState Router { get; } + } + public interface ISetMethodBindingConverter : Splat.IEnableLogger + { + int GetAffinityForObjects(System.Type? fromType, System.Type? toType); + object? PerformSet(object? toTarget, object? newValue, object?[]? arguments); + } + public interface ISuspensionDriver + { + System.IObservable InvalidateState(); + System.IObservable LoadState(); + System.IObservable SaveState(object state); + } + public interface ISuspensionHost : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + object? AppState { get; set; } + System.Func? CreateNewAppState { get; set; } + System.IObservable IsLaunchingNew { get; set; } + System.IObservable IsResuming { get; set; } + System.IObservable IsUnpausing { get; set; } + System.IObservable ShouldInvalidateState { get; set; } + System.IObservable ShouldPersistState { get; set; } + } + public interface IViewFor : ReactiveUI.IActivatableView + { + object? ViewModel { get; set; } + } + public interface IViewFor : ReactiveUI.IActivatableView, ReactiveUI.IViewFor + where T : class + { + T ViewModel { get; set; } + } + public interface IViewLocator : Splat.IEnableLogger + { + ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null); + } + public class IntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public IntegerToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class InteractionBinderImplementation : ReactiveUI.IInteractionBinderImplementation, Splat.IEnableLogger + { + public InteractionBinderImplementation() { } + public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public static class InteractionBindingMixins + { + public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public sealed class InteractionContext : ReactiveUI.IInteractionContext, ReactiveUI.IOutputContext + { + public TInput Input { get; } + public bool IsHandled { get; } + public TOutput GetOutput() { } + public void SetOutput(TOutput output) { } + } + public class Interaction : ReactiveUI.IInteraction + { + public Interaction(System.Reactive.Concurrency.IScheduler? handlerScheduler = null) { } + protected virtual ReactiveUI.IOutputContext GenerateContext(TInput input) { } + protected System.Func, System.IObservable>[] GetHandlers() { } + public virtual System.IObservable Handle(TInput input) { } + public System.IDisposable RegisterHandler(System.Action> handler) { } + public System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler) { } + public System.IDisposable RegisterHandler(System.Func, System.IObservable> handler) { } + } + public class LongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public LongToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class MessageBus : ReactiveUI.IMessageBus, Splat.IEnableLogger + { + public MessageBus() { } + public static ReactiveUI.IMessageBus Current { get; set; } + public bool IsRegistered(System.Type type, string? contract = null) { } + public System.IObservable Listen(string? contract = null) { } + public System.IObservable ListenIncludeLatest(string? contract = null) { } + public System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null) { } + public void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null) { } + public void SendMessage(T message, string? contract = null) { } + } + public class NullableByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableByteToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableDecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableDecimalToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableDoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableDoubleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableIntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableIntegerToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableLongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableLongToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableShortToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class NullableSingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public NullableSingleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public static class OAPHCreationHelperMixin + { + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : class, ReactiveUI.IReactiveObject { } + } + public sealed class ObservableAsPropertyHelper : ReactiveUI.IHandleObservableErrors, Splat.IEnableLogger, System.IDisposable + { + public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, System.Func? getInitialValue = null, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + public bool IsSubscribed { get; } + public System.IObservable ThrownExceptions { get; } + public T Value { get; } + public void Dispose() { } + public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } + } + public static class ObservableFuncMixins + { + public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } + } + public static class ObservableLoggingMixin + { + public static System.IObservable Log(this System.IObservable @this, TObj logObject, string? message = null, System.Func? stringifier = null) + where TObj : Splat.IEnableLogger { } + public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.IObservable? next = null, string? message = null) + where TObj : Splat.IEnableLogger { } + public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.Func> next, string? message = null) + where TObj : Splat.IEnableLogger + where TException : System.Exception { } + } + public static class ObservableMixins + { + public static System.IObservable WhereNotNull(this System.IObservable observable) { } + } + public class ObservedChange : ReactiveUI.IObservedChange + { + public ObservedChange(TSender sender, System.Linq.Expressions.Expression? expression, TValue value) { } + public System.Linq.Expressions.Expression? Expression { get; } + public TSender Sender { get; } + public TValue Value { get; } + } + public static class ObservedChangedMixin + { + public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } + public static TValue GetValue(this ReactiveUI.IObservedChange item) { } + public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } + public static System.IObservable Value(this System.IObservable> item) { } + } + public static class OrderedComparer + { + public static ReactiveUI.IComparerBuilder For() { } + public static ReactiveUI.IComparerBuilder For(System.Collections.Generic.IEnumerable enumerable) { } + } + public static class OrderedComparer + { + public static System.Collections.Generic.IComparer OrderBy(System.Func selector) { } + public static System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer) { } + public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector) { } + public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer) { } + } + public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public POCOObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public static class PlatformRegistrationManager + { + public static void SetRegistrationNamespaces(params ReactiveUI.RegistrationNamespace[] namespaces) { } + } + public class PlatformRegistrations + { + public PlatformRegistrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + public class PropertyBinderImplementation : ReactiveUI.IPropertyBinderImplementation, Splat.IEnableLogger + { + public PropertyBinderImplementation() { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TTarget : class { } + public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public static class PropertyBindingMixins + { + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func vmToViewConverter, System.Func viewToVmConverter) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { + "view", + "isViewModel"})] + public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public static System.IDisposable BindTo(this System.IObservable @this, TTarget? target, System.Linq.Expressions.Expression> property, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TTarget : class { } + public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) + where TViewModel : class + where TView : class, ReactiveUI.IViewFor { } + } + public static class ReactiveCommand + { + public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } + } + public abstract class ReactiveCommandBase : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable, System.Windows.Input.ICommand + { + protected ReactiveCommandBase() { } + public abstract System.IObservable CanExecute { get; } + public abstract System.IObservable IsExecuting { get; } + public abstract System.IObservable ThrownExceptions { get; } + public void Dispose() { } + protected abstract void Dispose(bool disposing); + public abstract System.IObservable Execute(); + public abstract System.IObservable Execute(TParam parameter); + protected virtual bool ICommandCanExecute(object? parameter) { } + protected virtual void ICommandExecute(object? parameter) { } + protected void OnCanExecuteChanged(bool newValue) { } + public abstract System.IDisposable Subscribe(System.IObserver observer); + } + public static class ReactiveCommandMixins + { + public static System.IDisposable InvokeCommand(this System.IObservable item, System.Windows.Input.ICommand? command) { } + public static System.IDisposable InvokeCommand(this System.IObservable item, ReactiveUI.ReactiveCommandBase? command) { } + public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) + where TTarget : class { } + public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) + where TTarget : class { } + } + public class ReactiveCommand : ReactiveUI.ReactiveCommandBase + { + protected ReactiveCommand(System.Func> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler) { } + public override System.IObservable CanExecute { get; } + public override System.IObservable IsExecuting { get; } + public override System.IObservable ThrownExceptions { get; } + protected override void Dispose(bool disposing) { } + public override System.IObservable Execute() { } + public override System.IObservable Execute(TParam parameter) { } + public override System.IDisposable Subscribe(System.IObserver observer) { } + } + public static class ReactiveNotifyPropertyChangedMixin + { + public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange = false, bool skipInitial = true) { } + public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange = false) + where TSender : class { } + public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange = false, bool skipInitial = true, bool suppressWarnings = false) { } + } + [System.Runtime.Serialization.DataContract] + public class ReactiveObject : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public ReactiveObject() { } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changed { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changing { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable ThrownExceptions { get; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + public bool AreChangeNotificationsEnabled() { } + public System.IDisposable DelayChangeNotifications() { } + public System.IDisposable SuppressChangeNotifications() { } + } + public class ReactivePropertyChangedEventArgs : System.ComponentModel.PropertyChangedEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs + { + public ReactivePropertyChangedEventArgs(TSender sender, string propertyName) { } + public TSender Sender { get; } + } + public class ReactivePropertyChangingEventArgs : System.ComponentModel.PropertyChangingEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs + { + public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { } + public TSender Sender { get; } + } + [System.Runtime.Serialization.DataContract] + public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable + { + public ReactiveRecord() { } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changed { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> Changing { get; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable ThrownExceptions { get; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + public bool AreChangeNotificationsEnabled() { } + public System.IDisposable DelayChangeNotifications() { } + public System.IDisposable SuppressChangeNotifications() { } + } + public static class Reflection + { + public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } + public static System.Type GetEventArgsTypeForEvent(System.Type type, string? eventName) { } + public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } + public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } + public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } + public static System.Action? GetValueSetterOrThrow(System.Reflection.MemberInfo? member) { } + public static bool IsStatic(this System.Reflection.PropertyInfo item) { } + public static System.Type? ReallyFindType(string? type, bool throwOnFailure) { } + public static System.Linq.Expressions.Expression Rewrite(System.Linq.Expressions.Expression? expression) { } + public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } + public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } + public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } + public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } + } + public enum RegistrationNamespace + { + None = 0, + XamForms = 1, + Winforms = 2, + Wpf = 3, + Uno = 4, + UnoWinUI = 5, + Blazor = 6, + Drawing = 7, + Avalonia = 8, + Maui = 9, + Uwp = 10, + WinUI = 11, + } + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + public static class RoutableViewModelMixin + { + public static System.IDisposable WhenNavigatedTo(this ReactiveUI.IRoutableViewModel item, System.Func onNavigatedTo) { } + public static System.IObservable WhenNavigatedToObservable(this ReactiveUI.IRoutableViewModel item) { } + public static System.IObservable WhenNavigatingFromObservable(this ReactiveUI.IRoutableViewModel item) { } + } + [System.Runtime.Serialization.DataContract] + public class RoutingState : ReactiveUI.ReactiveObject + { + public RoutingState(System.Reactive.Concurrency.IScheduler? scheduler = null) { } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable CurrentViewModel { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public ReactiveUI.ReactiveCommand Navigate { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public ReactiveUI.ReactiveCommand NavigateAndReset { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public ReactiveUI.ReactiveCommand NavigateBack { get; set; } + [System.Runtime.Serialization.IgnoreDataMember] + [System.Text.Json.Serialization.JsonIgnore] + public System.IObservable> NavigationChanged { get; set; } + [System.Runtime.Serialization.DataMember] + [System.Text.Json.Serialization.JsonRequired] + public System.Collections.ObjectModel.ObservableCollection NavigationStack { get; set; } + } + public static class RoutingStateMixins + { + public static T? FindViewModelInStack(this ReactiveUI.RoutingState item) + where T : ReactiveUI.IRoutableViewModel { } + public static ReactiveUI.IRoutableViewModel? GetCurrentViewModel(this ReactiveUI.RoutingState item) { } + } + public static class RxApp + { + public const int BigCacheLimit = 256; + public const int SmallCacheLimit = 64; + public static System.IObserver DefaultExceptionHandler { get; set; } + public static System.Reactive.Concurrency.IScheduler MainThreadScheduler { get; set; } + public static bool SuppressViewCommandBindingMessage { get; set; } + public static ReactiveUI.ISuspensionHost SuspensionHost { get; set; } + public static System.Reactive.Concurrency.IScheduler TaskpoolScheduler { get; set; } + } + public class ScheduledSubject : System.IDisposable, System.IObservable, System.IObserver, System.Reactive.Subjects.ISubject, System.Reactive.Subjects.ISubject + { + public ScheduledSubject(System.Reactive.Concurrency.IScheduler scheduler, System.IObserver? defaultObserver = null, System.Reactive.Subjects.ISubject? defaultSubject = null) { } + public void Dispose() { } + protected virtual void Dispose(bool isDisposing) { } + public void OnCompleted() { } + public void OnError(System.Exception error) { } + public void OnNext(T value) { } + public System.IDisposable Subscribe(System.IObserver observer) { } + } + public class ShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public ShortToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + [System.AttributeUsage(System.AttributeTargets.Class)] + public sealed class SingleInstanceViewAttribute : System.Attribute + { + public SingleInstanceViewAttribute() { } + } + public class SingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public SingleToStringTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class StringConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public StringConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } + } + public static class SuspensionHostExtensions + { + public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } + public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) + where T : class { } + public static System.IDisposable SetupDefaultSuspendResume(this ReactiveUI.ISuspensionHost item, ReactiveUI.ISuspensionDriver? driver = null) { } + } + public enum TriggerUpdate + { + ViewToViewModel = 0, + ViewModelToView = 1, + } + [System.Serializable] + public class UnhandledErrorException : System.Exception + { + public UnhandledErrorException() { } + public UnhandledErrorException(string message) { } + protected UnhandledErrorException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public UnhandledErrorException(string message, System.Exception innerException) { } + } + [System.Serializable] + public class UnhandledInteractionException : System.Exception + { + public UnhandledInteractionException() { } + public UnhandledInteractionException(string message) { } + public UnhandledInteractionException(ReactiveUI.Interaction interaction, TInput input) { } + protected UnhandledInteractionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public UnhandledInteractionException(string message, System.Exception innerException) { } + public TInput Input { get; } + public ReactiveUI.Interaction? Interaction { get; } + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + [System.AttributeUsage(System.AttributeTargets.Class)] + public sealed class ViewContractAttribute : System.Attribute + { + public ViewContractAttribute(string contract) { } + public string Contract { get; } + } + public static class ViewForMixins + { + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block) { } + public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action> block) { } + public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action block) { } + public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Func> block) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block, ReactiveUI.IViewFor view) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action block, ReactiveUI.IViewFor? view = null) { } + public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block, ReactiveUI.IViewFor? view) { } + } + public static class ViewLocator + { + public static ReactiveUI.IViewLocator Current { get; } + } + [System.Serializable] + public class ViewLocatorNotFoundException : System.Exception + { + public ViewLocatorNotFoundException() { } + public ViewLocatorNotFoundException(string message) { } + protected ViewLocatorNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public ViewLocatorNotFoundException(string message, System.Exception innerException) { } + } + public sealed class ViewModelActivator : System.IDisposable + { + public ViewModelActivator() { } + public System.IObservable Activated { get; } + public System.IObservable Deactivated { get; } + public System.IDisposable Activate() { } + public void Deactivate(bool ignoreRefCount = false) { } + public void Dispose() { } + } + public class WaitForDispatcherScheduler : System.Reactive.Concurrency.IScheduler + { + public WaitForDispatcherScheduler(System.Func schedulerFactory) { } + public System.DateTimeOffset Now { get; } + public System.IDisposable Schedule(TState state, System.Func action) { } + public System.IDisposable Schedule(TState state, System.DateTimeOffset dueTime, System.Func action) { } + public System.IDisposable Schedule(TState state, System.TimeSpan dueTime, System.Func action) { } + } + public static class WhenAnyMixin + { + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Linq.Expressions.Expression? property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func selector) { } + public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func selector) { } + public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func selector) { } + } + public static class WhenAnyObservableMixin + { + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Func selector) + where TSender : class { } + public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12, System.Func selector) + where TSender : class { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet6_0.verified.txt new file mode 100644 index 0000000000..304564a83e --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet6_0.verified.txt @@ -0,0 +1,55 @@ +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] +namespace ReactiveUI.Testing +{ + public interface IBuilder { } + public static class IBuilderExtensions + { + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, System.Collections.Generic.IEnumerable values) + where TBuilder : ReactiveUI.Testing.IBuilder { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, TField value) + where TBuilder : ReactiveUI.Testing.IBuilder { } + public static TBuilder With(this TBuilder builder, out TField field, TField value) + where TBuilder : ReactiveUI.Testing.IBuilder { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.IDictionary keyValuePair) + where TKey : notnull { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.KeyValuePair keyValuePair) + where TBuilder : ReactiveUI.Testing.IBuilder + where TKey : notnull { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, TKey key, TField value) + where TBuilder : ReactiveUI.Testing.IBuilder + where TKey : notnull { } + } + public static class MessageBusExtensions + { + public static void With(this ReactiveUI.IMessageBus messageBus, System.Action block) { } + public static TRet With(this ReactiveUI.IMessageBus messageBus, System.Func block) { } + public static System.IDisposable WithMessageBus(this ReactiveUI.IMessageBus messageBus) { } + } + public static class SchedulerExtensions + { + public static void AdvanceByMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } + public static void AdvanceToMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } + public static long FromTimeSpan(this Microsoft.Reactive.Testing.TestScheduler scheduler, System.TimeSpan span) { } + public static Microsoft.Reactive.Testing.Recorded> OnCompletedAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } + public static Microsoft.Reactive.Testing.Recorded> OnErrorAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, System.Exception ex) { } + public static Microsoft.Reactive.Testing.Recorded> OnNextAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, T value) { } + public static void With(this T scheduler, System.Action block) + where T : System.Reactive.Concurrency.IScheduler { } + public static TRet With(this T scheduler, System.Func block) + where T : System.Reactive.Concurrency.IScheduler { } + public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func block) + where T : System.Reactive.Concurrency.IScheduler { } + public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func> block) + where T : System.Reactive.Concurrency.IScheduler { } + public static System.IDisposable WithScheduler(System.Reactive.Concurrency.IScheduler scheduler) { } + } + public class TestSequencer : System.IDisposable + { + public TestSequencer() { } + public long CompletedPhases { get; } + public long CurrentPhase { get; } + public System.Threading.Tasks.Task AdvancePhaseAsync(string comment = "") { } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet7_0.verified.txt new file mode 100644 index 0000000000..879eba2a36 --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet7_0.verified.txt @@ -0,0 +1,55 @@ +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName=".NET 7.0")] +namespace ReactiveUI.Testing +{ + public interface IBuilder { } + public static class IBuilderExtensions + { + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, System.Collections.Generic.IEnumerable values) + where TBuilder : ReactiveUI.Testing.IBuilder { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, TField value) + where TBuilder : ReactiveUI.Testing.IBuilder { } + public static TBuilder With(this TBuilder builder, out TField field, TField value) + where TBuilder : ReactiveUI.Testing.IBuilder { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.IDictionary keyValuePair) + where TKey : notnull { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.KeyValuePair keyValuePair) + where TBuilder : ReactiveUI.Testing.IBuilder + where TKey : notnull { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, TKey key, TField value) + where TBuilder : ReactiveUI.Testing.IBuilder + where TKey : notnull { } + } + public static class MessageBusExtensions + { + public static void With(this ReactiveUI.IMessageBus messageBus, System.Action block) { } + public static TRet With(this ReactiveUI.IMessageBus messageBus, System.Func block) { } + public static System.IDisposable WithMessageBus(this ReactiveUI.IMessageBus messageBus) { } + } + public static class SchedulerExtensions + { + public static void AdvanceByMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } + public static void AdvanceToMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } + public static long FromTimeSpan(this Microsoft.Reactive.Testing.TestScheduler scheduler, System.TimeSpan span) { } + public static Microsoft.Reactive.Testing.Recorded> OnCompletedAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } + public static Microsoft.Reactive.Testing.Recorded> OnErrorAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, System.Exception ex) { } + public static Microsoft.Reactive.Testing.Recorded> OnNextAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, T value) { } + public static void With(this T scheduler, System.Action block) + where T : System.Reactive.Concurrency.IScheduler { } + public static TRet With(this T scheduler, System.Func block) + where T : System.Reactive.Concurrency.IScheduler { } + public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func block) + where T : System.Reactive.Concurrency.IScheduler { } + public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func> block) + where T : System.Reactive.Concurrency.IScheduler { } + public static System.IDisposable WithScheduler(System.Reactive.Concurrency.IScheduler scheduler) { } + } + public class TestSequencer : System.IDisposable + { + public TestSequencer() { } + public long CompletedPhases { get; } + public long CurrentPhase { get; } + public System.Threading.Tasks.Task AdvancePhaseAsync(string comment = "") { } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.Net4_7.verified.txt new file mode 100644 index 0000000000..f11db08cc5 --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.Net4_7.verified.txt @@ -0,0 +1,55 @@ +[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] +namespace ReactiveUI.Testing +{ + public interface IBuilder { } + public static class IBuilderExtensions + { + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, System.Collections.Generic.IEnumerable values) + where TBuilder : ReactiveUI.Testing.IBuilder { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, TField value) + where TBuilder : ReactiveUI.Testing.IBuilder { } + public static TBuilder With(this TBuilder builder, out TField field, TField value) + where TBuilder : ReactiveUI.Testing.IBuilder { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.IDictionary keyValuePair) + where TKey : notnull { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.KeyValuePair keyValuePair) + where TBuilder : ReactiveUI.Testing.IBuilder + where TKey : notnull { } + public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, TKey key, TField value) + where TBuilder : ReactiveUI.Testing.IBuilder + where TKey : notnull { } + } + public static class MessageBusExtensions + { + public static void With(this ReactiveUI.IMessageBus messageBus, System.Action block) { } + public static TRet With(this ReactiveUI.IMessageBus messageBus, System.Func block) { } + public static System.IDisposable WithMessageBus(this ReactiveUI.IMessageBus messageBus) { } + } + public static class SchedulerExtensions + { + public static void AdvanceByMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } + public static void AdvanceToMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } + public static long FromTimeSpan(this Microsoft.Reactive.Testing.TestScheduler scheduler, System.TimeSpan span) { } + public static Microsoft.Reactive.Testing.Recorded> OnCompletedAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } + public static Microsoft.Reactive.Testing.Recorded> OnErrorAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, System.Exception ex) { } + public static Microsoft.Reactive.Testing.Recorded> OnNextAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, T value) { } + public static void With(this T scheduler, System.Action block) + where T : System.Reactive.Concurrency.IScheduler { } + public static TRet With(this T scheduler, System.Func block) + where T : System.Reactive.Concurrency.IScheduler { } + public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func block) + where T : System.Reactive.Concurrency.IScheduler { } + public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func> block) + where T : System.Reactive.Concurrency.IScheduler { } + public static System.IDisposable WithScheduler(System.Reactive.Concurrency.IScheduler scheduler) { } + } + public class TestSequencer : System.IDisposable + { + public TestSequencer() { } + public long CompletedPhases { get; } + public long CurrentPhase { get; } + public System.Threading.Tasks.Task AdvancePhaseAsync(string comment = "") { } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt new file mode 100644 index 0000000000..5d90003771 --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt @@ -0,0 +1,116 @@ +[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] +[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] +namespace ReactiveUI.Winforms +{ + public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher, Splat.IEnableLogger + { + public ActivationForViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public class ContentControlBindingHook : ReactiveUI.IPropertyBindingHook + { + public ContentControlBindingHook() { } + public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } + } + public class CreatesWinformsCommandBinding : ReactiveUI.ICreatesCommandBinding + { + public CreatesWinformsCommandBinding() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class PanelSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger + { + public PanelSetMethodBindingConverter() { } + public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } + public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } + } + public class PlatformOperations : ReactiveUI.IPlatformOperations + { + public PlatformOperations() { } + public string? GetOrientation() { } + } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } + public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public ReactiveUserControl() { } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The ViewModel.")] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public TViewModel ViewModel { get; set; } + protected override void Dispose(bool disposing) { } + } + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + [System.ComponentModel.DefaultProperty("ViewModel")] + public class RoutedControlHost : System.Windows.Forms.UserControl, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public RoutedControlHost() { } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The default control when no viewmodel is specified")] + public System.Windows.Forms.Control? DefaultContent { get; set; } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The router.")] + public ReactiveUI.RoutingState? Router { get; set; } + [System.ComponentModel.Browsable(false)] + public System.IObservable? ViewContractObservable { get; set; } + [System.ComponentModel.Browsable(false)] + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + protected override void Dispose(bool disposing) { } + } + public class TableContentSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger + { + public TableContentSetMethodBindingConverter() { } + public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } + public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } + } + [System.ComponentModel.DefaultProperty("ViewModel")] + public class ViewModelControlHost : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IReactiveObject, ReactiveUI.IViewFor, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public ViewModelControlHost() { } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.DefaultValue(true)] + [System.ComponentModel.Description("Cache Views")] + public bool CacheViews { get; set; } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The Current View")] + public object? Content { get; set; } + public System.Windows.Forms.Control? CurrentView { get; } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The default control when no viewmodel is specified")] + public System.Windows.Forms.Control? DefaultContent { get; set; } + [System.ComponentModel.Browsable(false)] + public System.IObservable? ViewContractObservable { get; set; } + [System.ComponentModel.Browsable(false)] + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The viewmodel to host.")] + public object? ViewModel { get; set; } + public static bool DefaultCacheViewsEnabled { get; set; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + protected override void Dispose(bool disposing) { } + } + public class WinformsCreatesObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public WinformsCreatesObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt new file mode 100644 index 0000000000..f8bac7dbb5 --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt @@ -0,0 +1,116 @@ +[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName=".NET 7.0")] +[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] +namespace ReactiveUI.Winforms +{ + public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher, Splat.IEnableLogger + { + public ActivationForViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public class ContentControlBindingHook : ReactiveUI.IPropertyBindingHook + { + public ContentControlBindingHook() { } + public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } + } + public class CreatesWinformsCommandBinding : ReactiveUI.ICreatesCommandBinding + { + public CreatesWinformsCommandBinding() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class PanelSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger + { + public PanelSetMethodBindingConverter() { } + public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } + public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } + } + public class PlatformOperations : ReactiveUI.IPlatformOperations + { + public PlatformOperations() { } + public string? GetOrientation() { } + } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } + public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public ReactiveUserControl() { } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The ViewModel.")] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public TViewModel ViewModel { get; set; } + protected override void Dispose(bool disposing) { } + } + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + [System.ComponentModel.DefaultProperty("ViewModel")] + public class RoutedControlHost : System.Windows.Forms.UserControl, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public RoutedControlHost() { } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The default control when no viewmodel is specified")] + public System.Windows.Forms.Control? DefaultContent { get; set; } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The router.")] + public ReactiveUI.RoutingState? Router { get; set; } + [System.ComponentModel.Browsable(false)] + public System.IObservable? ViewContractObservable { get; set; } + [System.ComponentModel.Browsable(false)] + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + protected override void Dispose(bool disposing) { } + } + public class TableContentSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger + { + public TableContentSetMethodBindingConverter() { } + public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } + public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } + } + [System.ComponentModel.DefaultProperty("ViewModel")] + public class ViewModelControlHost : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IReactiveObject, ReactiveUI.IViewFor, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public ViewModelControlHost() { } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.DefaultValue(true)] + [System.ComponentModel.Description("Cache Views")] + public bool CacheViews { get; set; } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The Current View")] + public object? Content { get; set; } + public System.Windows.Forms.Control? CurrentView { get; } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The default control when no viewmodel is specified")] + public System.Windows.Forms.Control? DefaultContent { get; set; } + [System.ComponentModel.Browsable(false)] + public System.IObservable? ViewContractObservable { get; set; } + [System.ComponentModel.Browsable(false)] + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The viewmodel to host.")] + public object? ViewModel { get; set; } + public static bool DefaultCacheViewsEnabled { get; set; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + protected override void Dispose(bool disposing) { } + } + public class WinformsCreatesObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public WinformsCreatesObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt new file mode 100644 index 0000000000..32abdea373 --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt @@ -0,0 +1,116 @@ +[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName=".NET 8.0")] +[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] +namespace ReactiveUI.Winforms +{ + public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher, Splat.IEnableLogger + { + public ActivationForViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public class ContentControlBindingHook : ReactiveUI.IPropertyBindingHook + { + public ContentControlBindingHook() { } + public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } + } + public class CreatesWinformsCommandBinding : ReactiveUI.ICreatesCommandBinding + { + public CreatesWinformsCommandBinding() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class PanelSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger + { + public PanelSetMethodBindingConverter() { } + public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } + public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } + } + public class PlatformOperations : ReactiveUI.IPlatformOperations + { + public PlatformOperations() { } + public string? GetOrientation() { } + } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } + public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public ReactiveUserControl() { } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The ViewModel.")] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public TViewModel ViewModel { get; set; } + protected override void Dispose(bool disposing) { } + } + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + [System.ComponentModel.DefaultProperty("ViewModel")] + public class RoutedControlHost : System.Windows.Forms.UserControl, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public RoutedControlHost() { } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The default control when no viewmodel is specified")] + public System.Windows.Forms.Control? DefaultContent { get; set; } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The router.")] + public ReactiveUI.RoutingState? Router { get; set; } + [System.ComponentModel.Browsable(false)] + public System.IObservable? ViewContractObservable { get; set; } + [System.ComponentModel.Browsable(false)] + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + protected override void Dispose(bool disposing) { } + } + public class TableContentSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger + { + public TableContentSetMethodBindingConverter() { } + public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } + public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } + } + [System.ComponentModel.DefaultProperty("ViewModel")] + public class ViewModelControlHost : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IReactiveObject, ReactiveUI.IViewFor, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public ViewModelControlHost() { } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.DefaultValue(true)] + [System.ComponentModel.Description("Cache Views")] + public bool CacheViews { get; set; } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The Current View")] + public object? Content { get; set; } + public System.Windows.Forms.Control? CurrentView { get; } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The default control when no viewmodel is specified")] + public System.Windows.Forms.Control? DefaultContent { get; set; } + [System.ComponentModel.Browsable(false)] + public System.IObservable? ViewContractObservable { get; set; } + [System.ComponentModel.Browsable(false)] + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The viewmodel to host.")] + public object? ViewModel { get; set; } + public static bool DefaultCacheViewsEnabled { get; set; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + protected override void Dispose(bool disposing) { } + } + public class WinformsCreatesObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public WinformsCreatesObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt new file mode 100644 index 0000000000..3b64ac1766 --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt @@ -0,0 +1,114 @@ +[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] +namespace ReactiveUI.Winforms +{ + public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher, Splat.IEnableLogger + { + public ActivationForViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public class ContentControlBindingHook : ReactiveUI.IPropertyBindingHook + { + public ContentControlBindingHook() { } + public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } + } + public class CreatesWinformsCommandBinding : ReactiveUI.ICreatesCommandBinding + { + public CreatesWinformsCommandBinding() { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } + public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } + public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + } + public class PanelSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger + { + public PanelSetMethodBindingConverter() { } + public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } + public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } + } + public class PlatformOperations : ReactiveUI.IPlatformOperations + { + public PlatformOperations() { } + public string? GetOrientation() { } + } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } + public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public ReactiveUserControl() { } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The ViewModel.")] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public TViewModel ViewModel { get; set; } + protected override void Dispose(bool disposing) { } + } + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } + [System.ComponentModel.DefaultProperty("ViewModel")] + public class RoutedControlHost : System.Windows.Forms.UserControl, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public RoutedControlHost() { } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The default control when no viewmodel is specified")] + public System.Windows.Forms.Control? DefaultContent { get; set; } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The router.")] + public ReactiveUI.RoutingState? Router { get; set; } + [System.ComponentModel.Browsable(false)] + public System.IObservable? ViewContractObservable { get; set; } + [System.ComponentModel.Browsable(false)] + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + protected override void Dispose(bool disposing) { } + } + public class TableContentSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger + { + public TableContentSetMethodBindingConverter() { } + public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } + public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } + } + [System.ComponentModel.DefaultProperty("ViewModel")] + public class ViewModelControlHost : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IReactiveObject, ReactiveUI.IViewFor, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging + { + public ViewModelControlHost() { } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.DefaultValue(true)] + [System.ComponentModel.Description("Cache Views")] + public bool CacheViews { get; set; } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The Current View")] + public object? Content { get; set; } + public System.Windows.Forms.Control? CurrentView { get; } + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The default control when no viewmodel is specified")] + public System.Windows.Forms.Control? DefaultContent { get; set; } + [System.ComponentModel.Browsable(false)] + public System.IObservable? ViewContractObservable { get; set; } + [System.ComponentModel.Browsable(false)] + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + [System.ComponentModel.Bindable(true)] + [System.ComponentModel.Category("ReactiveUI")] + [System.ComponentModel.Description("The viewmodel to host.")] + public object? ViewModel { get; set; } + public static bool DefaultCacheViewsEnabled { get; set; } + public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; + public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; + protected override void Dispose(bool disposing) { } + } + public class WinformsCreatesObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public WinformsCreatesObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet6_0.verified.txt new file mode 100644 index 0000000000..cc3c98af59 --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet6_0.verified.txt @@ -0,0 +1,139 @@ +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] +[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] +[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://reactiveui.net", "ReactiveUI")] +[assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] +namespace ReactiveUI +{ + public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher + { + public ActivationForViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public class AutoDataTemplateBindingHook : ReactiveUI.IPropertyBindingHook + { + public AutoDataTemplateBindingHook() { } + public static System.Lazy DefaultItemTemplate { get; } + public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } + } + public class AutoSuspendHelper : Splat.IEnableLogger + { + public AutoSuspendHelper(System.Windows.Application app) { } + public System.TimeSpan IdleTimeout { get; set; } + } + [System.Flags] + public enum BooleanToVisibilityHint + { + None = 0, + Inverse = 2, + UseHidden = 4, + } + public class BooleanToVisibilityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public BooleanToVisibilityTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class DependencyObjectObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public DependencyObjectObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public class PlatformOperations : ReactiveUI.IPlatformOperations + { + public PlatformOperations() { } + public string? GetOrientation() { } + } + public class ReactivePage : System.Windows.Controls.Page, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactivePage() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class ReactiveUserControl : System.Windows.Controls.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactiveUserControl() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class ReactiveWindow : System.Windows.Window, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactiveWindow() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class RoutedViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, Splat.IEnableLogger + { + public static readonly System.Windows.DependencyProperty DefaultContentProperty; + public static readonly System.Windows.DependencyProperty RouterProperty; + public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; + public RoutedViewHost() { } + public object DefaultContent { get; set; } + public ReactiveUI.RoutingState Router { get; set; } + public string? ViewContract { get; set; } + public System.IObservable ViewContractObservable { get; set; } + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + } + [System.Windows.TemplatePart(Name="PART_Container", Type=typeof(System.Windows.FrameworkElement?))] + [System.Windows.TemplatePart(Name="PART_CurrentContentPresentationSite", Type=typeof(System.Windows.Controls.ContentPresenter?))] + [System.Windows.TemplatePart(Name="PART_PreviousImageSite", Type=typeof(System.Windows.Controls.Image?))] + [System.Windows.TemplateVisualState(GroupName="PresentationStates", Name="Normal")] + public class TransitioningContentControl : System.Windows.Controls.ContentControl + { + public static readonly System.Windows.DependencyProperty TransitionDirectionProperty; + public static readonly System.Windows.DependencyProperty TransitionDurationProperty; + public static readonly System.Windows.DependencyProperty TransitionProperty; + public TransitioningContentControl() { } + public ReactiveUI.TransitioningContentControl.TransitionDirection Direction { get; set; } + public System.TimeSpan Duration { get; set; } + public ReactiveUI.TransitioningContentControl.TransitionType Transition { get; set; } + public event System.Windows.RoutedEventHandler? TransitionCompleted; + public event System.Windows.RoutedEventHandler? TransitionStarted; + public override void OnApplyTemplate() { } + protected override void OnContentChanged(object oldContent, object newContent) { } + public enum TransitionDirection + { + Up = 0, + Down = 1, + Left = 2, + Right = 3, + } + public enum TransitionType + { + Fade = 0, + Move = 1, + Slide = 2, + Drop = 3, + Bounce = 4, + } + } + public class ViewModelViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, Splat.IEnableLogger + { + public static readonly System.Windows.DependencyProperty DefaultContentProperty; + public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ViewModelViewHost() { } + public object DefaultContent { get; set; } + public string? ViewContract { get; set; } + public System.IObservable ViewContractObservable { get; set; } + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + public object? ViewModel { get; set; } + } +} +namespace ReactiveUI.Wpf +{ + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet7_0.verified.txt new file mode 100644 index 0000000000..1b219049f1 --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet7_0.verified.txt @@ -0,0 +1,139 @@ +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] +[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName=".NET 7.0")] +[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://reactiveui.net", "ReactiveUI")] +[assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] +namespace ReactiveUI +{ + public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher + { + public ActivationForViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public class AutoDataTemplateBindingHook : ReactiveUI.IPropertyBindingHook + { + public AutoDataTemplateBindingHook() { } + public static System.Lazy DefaultItemTemplate { get; } + public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } + } + public class AutoSuspendHelper : Splat.IEnableLogger + { + public AutoSuspendHelper(System.Windows.Application app) { } + public System.TimeSpan IdleTimeout { get; set; } + } + [System.Flags] + public enum BooleanToVisibilityHint + { + None = 0, + Inverse = 2, + UseHidden = 4, + } + public class BooleanToVisibilityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public BooleanToVisibilityTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class DependencyObjectObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public DependencyObjectObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public class PlatformOperations : ReactiveUI.IPlatformOperations + { + public PlatformOperations() { } + public string? GetOrientation() { } + } + public class ReactivePage : System.Windows.Controls.Page, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactivePage() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class ReactiveUserControl : System.Windows.Controls.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactiveUserControl() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class ReactiveWindow : System.Windows.Window, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactiveWindow() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class RoutedViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, Splat.IEnableLogger + { + public static readonly System.Windows.DependencyProperty DefaultContentProperty; + public static readonly System.Windows.DependencyProperty RouterProperty; + public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; + public RoutedViewHost() { } + public object DefaultContent { get; set; } + public ReactiveUI.RoutingState Router { get; set; } + public string? ViewContract { get; set; } + public System.IObservable ViewContractObservable { get; set; } + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + } + [System.Windows.TemplatePart(Name="PART_Container", Type=typeof(System.Windows.FrameworkElement?))] + [System.Windows.TemplatePart(Name="PART_CurrentContentPresentationSite", Type=typeof(System.Windows.Controls.ContentPresenter?))] + [System.Windows.TemplatePart(Name="PART_PreviousImageSite", Type=typeof(System.Windows.Controls.Image?))] + [System.Windows.TemplateVisualState(GroupName="PresentationStates", Name="Normal")] + public class TransitioningContentControl : System.Windows.Controls.ContentControl + { + public static readonly System.Windows.DependencyProperty TransitionDirectionProperty; + public static readonly System.Windows.DependencyProperty TransitionDurationProperty; + public static readonly System.Windows.DependencyProperty TransitionProperty; + public TransitioningContentControl() { } + public ReactiveUI.TransitioningContentControl.TransitionDirection Direction { get; set; } + public System.TimeSpan Duration { get; set; } + public ReactiveUI.TransitioningContentControl.TransitionType Transition { get; set; } + public event System.Windows.RoutedEventHandler? TransitionCompleted; + public event System.Windows.RoutedEventHandler? TransitionStarted; + public override void OnApplyTemplate() { } + protected override void OnContentChanged(object oldContent, object newContent) { } + public enum TransitionDirection + { + Up = 0, + Down = 1, + Left = 2, + Right = 3, + } + public enum TransitionType + { + Fade = 0, + Move = 1, + Slide = 2, + Drop = 3, + Bounce = 4, + } + } + public class ViewModelViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, Splat.IEnableLogger + { + public static readonly System.Windows.DependencyProperty DefaultContentProperty; + public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ViewModelViewHost() { } + public object DefaultContent { get; set; } + public string? ViewContract { get; set; } + public System.IObservable ViewContractObservable { get; set; } + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + public object? ViewModel { get; set; } + } +} +namespace ReactiveUI.Wpf +{ + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet8_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet8_0.verified.txt new file mode 100644 index 0000000000..88aac0b88a --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet8_0.verified.txt @@ -0,0 +1,139 @@ +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] +[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName=".NET 8.0")] +[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://reactiveui.net", "ReactiveUI")] +[assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] +namespace ReactiveUI +{ + public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher + { + public ActivationForViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public class AutoDataTemplateBindingHook : ReactiveUI.IPropertyBindingHook + { + public AutoDataTemplateBindingHook() { } + public static System.Lazy DefaultItemTemplate { get; } + public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } + } + public class AutoSuspendHelper : Splat.IEnableLogger + { + public AutoSuspendHelper(System.Windows.Application app) { } + public System.TimeSpan IdleTimeout { get; set; } + } + [System.Flags] + public enum BooleanToVisibilityHint + { + None = 0, + Inverse = 2, + UseHidden = 4, + } + public class BooleanToVisibilityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public BooleanToVisibilityTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class DependencyObjectObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public DependencyObjectObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public class PlatformOperations : ReactiveUI.IPlatformOperations + { + public PlatformOperations() { } + public string? GetOrientation() { } + } + public class ReactivePage : System.Windows.Controls.Page, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactivePage() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class ReactiveUserControl : System.Windows.Controls.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactiveUserControl() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class ReactiveWindow : System.Windows.Window, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactiveWindow() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class RoutedViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, Splat.IEnableLogger + { + public static readonly System.Windows.DependencyProperty DefaultContentProperty; + public static readonly System.Windows.DependencyProperty RouterProperty; + public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; + public RoutedViewHost() { } + public object DefaultContent { get; set; } + public ReactiveUI.RoutingState Router { get; set; } + public string? ViewContract { get; set; } + public System.IObservable ViewContractObservable { get; set; } + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + } + [System.Windows.TemplatePart(Name="PART_Container", Type=typeof(System.Windows.FrameworkElement?))] + [System.Windows.TemplatePart(Name="PART_CurrentContentPresentationSite", Type=typeof(System.Windows.Controls.ContentPresenter?))] + [System.Windows.TemplatePart(Name="PART_PreviousImageSite", Type=typeof(System.Windows.Controls.Image?))] + [System.Windows.TemplateVisualState(GroupName="PresentationStates", Name="Normal")] + public class TransitioningContentControl : System.Windows.Controls.ContentControl + { + public static readonly System.Windows.DependencyProperty TransitionDirectionProperty; + public static readonly System.Windows.DependencyProperty TransitionDurationProperty; + public static readonly System.Windows.DependencyProperty TransitionProperty; + public TransitioningContentControl() { } + public ReactiveUI.TransitioningContentControl.TransitionDirection Direction { get; set; } + public System.TimeSpan Duration { get; set; } + public ReactiveUI.TransitioningContentControl.TransitionType Transition { get; set; } + public event System.Windows.RoutedEventHandler? TransitionCompleted; + public event System.Windows.RoutedEventHandler? TransitionStarted; + public override void OnApplyTemplate() { } + protected override void OnContentChanged(object oldContent, object newContent) { } + public enum TransitionDirection + { + Up = 0, + Down = 1, + Left = 2, + Right = 3, + } + public enum TransitionType + { + Fade = 0, + Move = 1, + Slide = 2, + Drop = 3, + Bounce = 4, + } + } + public class ViewModelViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, Splat.IEnableLogger + { + public static readonly System.Windows.DependencyProperty DefaultContentProperty; + public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ViewModelViewHost() { } + public object DefaultContent { get; set; } + public string? ViewContract { get; set; } + public System.IObservable ViewContractObservable { get; set; } + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + public object? ViewModel { get; set; } + } +} +namespace ReactiveUI.Wpf +{ + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.Net4_7.verified.txt new file mode 100644 index 0000000000..079d7649ed --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.Net4_7.verified.txt @@ -0,0 +1,137 @@ +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://reactiveui.net", "ReactiveUI")] +[assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] +namespace ReactiveUI +{ + public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher + { + public ActivationForViewFetcher() { } + public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } + public int GetAffinityForView(System.Type view) { } + } + public class AutoDataTemplateBindingHook : ReactiveUI.IPropertyBindingHook + { + public AutoDataTemplateBindingHook() { } + public static System.Lazy DefaultItemTemplate { get; } + public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } + } + public class AutoSuspendHelper : Splat.IEnableLogger + { + public AutoSuspendHelper(System.Windows.Application app) { } + public System.TimeSpan IdleTimeout { get; set; } + } + [System.Flags] + public enum BooleanToVisibilityHint + { + None = 0, + Inverse = 2, + UseHidden = 4, + } + public class BooleanToVisibilityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger + { + public BooleanToVisibilityTypeConverter() { } + public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } + public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } + } + public class DependencyObjectObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger + { + public DependencyObjectObservableForProperty() { } + public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } + public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } + } + public class PlatformOperations : ReactiveUI.IPlatformOperations + { + public PlatformOperations() { } + public string? GetOrientation() { } + } + public class ReactivePage : System.Windows.Controls.Page, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactivePage() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class ReactiveUserControl : System.Windows.Controls.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactiveUserControl() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class ReactiveWindow : System.Windows.Window, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor + where TViewModel : class + { + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ReactiveWindow() { } + public TViewModel BindingRoot { get; } + public TViewModel ViewModel { get; set; } + } + public class RoutedViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, Splat.IEnableLogger + { + public static readonly System.Windows.DependencyProperty DefaultContentProperty; + public static readonly System.Windows.DependencyProperty RouterProperty; + public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; + public RoutedViewHost() { } + public object DefaultContent { get; set; } + public ReactiveUI.RoutingState Router { get; set; } + public string? ViewContract { get; set; } + public System.IObservable ViewContractObservable { get; set; } + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + } + [System.Windows.TemplatePart(Name="PART_Container", Type=typeof(System.Windows.FrameworkElement?))] + [System.Windows.TemplatePart(Name="PART_CurrentContentPresentationSite", Type=typeof(System.Windows.Controls.ContentPresenter?))] + [System.Windows.TemplatePart(Name="PART_PreviousImageSite", Type=typeof(System.Windows.Controls.Image?))] + [System.Windows.TemplateVisualState(GroupName="PresentationStates", Name="Normal")] + public class TransitioningContentControl : System.Windows.Controls.ContentControl + { + public static readonly System.Windows.DependencyProperty TransitionDirectionProperty; + public static readonly System.Windows.DependencyProperty TransitionDurationProperty; + public static readonly System.Windows.DependencyProperty TransitionProperty; + public TransitioningContentControl() { } + public ReactiveUI.TransitioningContentControl.TransitionDirection Direction { get; set; } + public System.TimeSpan Duration { get; set; } + public ReactiveUI.TransitioningContentControl.TransitionType Transition { get; set; } + public event System.Windows.RoutedEventHandler? TransitionCompleted; + public event System.Windows.RoutedEventHandler? TransitionStarted; + public override void OnApplyTemplate() { } + protected override void OnContentChanged(object oldContent, object newContent) { } + public enum TransitionDirection + { + Up = 0, + Down = 1, + Left = 2, + Right = 3, + } + public enum TransitionType + { + Fade = 0, + Move = 1, + Slide = 2, + Drop = 3, + Bounce = 4, + } + } + public class ViewModelViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, Splat.IEnableLogger + { + public static readonly System.Windows.DependencyProperty DefaultContentProperty; + public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; + public static readonly System.Windows.DependencyProperty ViewModelProperty; + public ViewModelViewHost() { } + public object DefaultContent { get; set; } + public string? ViewContract { get; set; } + public System.IObservable ViewContractObservable { get; set; } + public ReactiveUI.IViewLocator? ViewLocator { get; set; } + public object? ViewModel { get; set; } + } +} +namespace ReactiveUI.Wpf +{ + public class Registrations + { + public Registrations() { } + public void Register(System.Action, System.Type> registerFunction) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/XamlApiApprovalTests.Blend.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/XamlApiApprovalTests.Blend.Net4_7.verified.txt new file mode 100644 index 0000000000..a5c2269f57 --- /dev/null +++ b/src/ReactiveUI.Tests/Utilities/XamlApiApprovalTests.Blend.Net4_7.verified.txt @@ -0,0 +1,23 @@ +[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] +namespace ReactiveUI.Blend +{ + public class FollowObservableStateBehavior : Microsoft.Xaml.Behaviors.Behavior + { + public static readonly System.Windows.DependencyProperty StateObservableProperty; + public static readonly System.Windows.DependencyProperty TargetObjectProperty; + public FollowObservableStateBehavior() { } + public bool AutoResubscribeOnError { get; set; } + public System.IObservable StateObservable { get; set; } + public System.Windows.FrameworkElement TargetObject { get; set; } + protected override void OnDetaching() { } + protected static void OnStateObservableChanged(System.Windows.DependencyObject? sender, System.Windows.DependencyPropertyChangedEventArgs e) { } + } + public class ObservableTrigger : Microsoft.Xaml.Behaviors.TriggerBase + { + public static readonly System.Windows.DependencyProperty ObservableProperty; + public ObservableTrigger() { } + public bool AutoResubscribeOnError { get; set; } + public System.IObservable Observable { get; set; } + protected static void OnObservableChanged(System.Windows.DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e) { } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.Designer.cs b/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.Designer.cs new file mode 100644 index 0000000000..7648d0a303 --- /dev/null +++ b/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.Designer.cs @@ -0,0 +1,23 @@ +namespace ReactiveUI.Winforms; + +partial class ReactiveUserControlNonGeneric +{ + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + } + + #endregion +} diff --git a/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.cs b/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.cs new file mode 100644 index 0000000000..0431b26499 --- /dev/null +++ b/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.cs @@ -0,0 +1,39 @@ +// Copyright (c) 2023 .NET Foundation and Contributors. All rights reserved. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Windows.Forms; + +namespace ReactiveUI.Winforms; + +/// +/// This is an UserControl that is both and UserControl and has a ReactiveObject powers +/// (i.e. you can call RaiseAndSetIfChanged). +/// +/// +/// +public partial class ReactiveUserControlNonGeneric : UserControl, IViewFor +{ + /// + /// Initializes a new instance of the class. + /// + public ReactiveUserControlNonGeneric() => InitializeComponent(); + + /// + object? IViewFor.ViewModel { get; set; } + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing) + { + components?.Dispose(); + } + + base.Dispose(disposing); + } +} diff --git a/src/ReactiveUI/Bindings/Command/CommandBinder.cs b/src/ReactiveUI/Bindings/Command/CommandBinder.cs index 241e0c7145..915eb084be 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinder.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinder.cs @@ -55,6 +55,39 @@ public static IReactiveBinding BindCommand _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, withParameter, toEvent); + /// + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// The parameter type. + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// The View. + /// The View model. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// The ViewModel property to pass as the + /// param of the ICommand. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + public static IReactiveBinding BindCommandNonGeneric( + this TView view, + TViewModel? viewModel, + Expression> propertyName, + Expression> controlName, + IObservable withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand => + _binderImplementation.BindCommandNonGeneric(viewModel, view, propertyName, controlName, withParameter, toEvent); + /// /// Bind a command from the ViewModel to an explicitly specified control /// on the View. @@ -84,6 +117,35 @@ public static IReactiveBinding BindCommand _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, toEvent); + /// + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// The View. + /// The View model. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + public static IReactiveBinding BindCommandNonGeneric( + this TView view, + TViewModel? viewModel, + Expression> propertyName, + Expression> controlName, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand => + _binderImplementation.BindCommandNonGeneric(viewModel, view, propertyName, controlName, toEvent); + /// /// Bind a command from the ViewModel to an explicitly specified control /// on the View. @@ -133,4 +195,54 @@ public static IReactiveBinding BindCommand + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// The parameter type. + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// The View. + /// The View model. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// The ViewModel property to pass as the + /// param of the ICommand. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + public static IReactiveBinding BindCommandNonGeneric( + this TView view, + TViewModel? viewModel, + Expression> propertyName, + Expression> controlName, + Expression> withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand + { +#if NET6_0_OR_GREATER + ArgumentNullException.ThrowIfNull(view); +#else + if (view is null) + { + throw new ArgumentNullException(nameof(view)); + } +#endif + + return _binderImplementation.BindCommandNonGeneric( + viewModel, + view, + propertyName, + controlName, + withParameter, + toEvent); + } } diff --git a/src/ReactiveUI/Bindings/Command/CommandBinderImplementation.cs b/src/ReactiveUI/Bindings/Command/CommandBinderImplementation.cs index 2cf6e67b8d..64f1aec08f 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinderImplementation.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinderImplementation.cs @@ -74,6 +74,68 @@ public IReactiveBinding BindCommand + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// The parameter type. + /// The View model. + /// The View. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// The ViewModel property to pass as the + /// param of the ICommand. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + /// + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// + /// nameof(vmProperty) + /// or + /// nameof(vmProperty). + public IReactiveBinding BindCommandNonGeneric( + TViewModel? viewModel, + TView view, + Expression> vmProperty, + Expression> controlProperty, + Expression> withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand + { + if (vmProperty is null) + { + throw new ArgumentNullException(nameof(vmProperty)); + } + + if (controlProperty is null) + { + throw new ArgumentNullException(nameof(controlProperty)); + } + + var vmExpression = Reflection.Rewrite(vmProperty.Body); + var controlExpression = Reflection.Rewrite(controlProperty.Body); + var source = Reflection.ViewModelWhenAnyValue(viewModel, view, vmExpression).Cast(); + + var bindingDisposable = BindCommandInternal(source, view, controlExpression, withParameter.ToObservable(viewModel), toEvent); + + return new ReactiveBinding( + view, + controlExpression, + vmExpression, + source, + BindingDirection.OneWay, + bindingDisposable); + } + /// /// Bind a command from the ViewModel to an explicitly specified control /// on the View. @@ -131,6 +193,63 @@ public IReactiveBinding BindCommand + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// The parameter type. + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// The View model. + /// The View. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// The ViewModel property to pass as the + /// param of the ICommand. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + public IReactiveBinding BindCommandNonGeneric( + TViewModel? viewModel, + TView view, + Expression> vmProperty, + Expression> controlProperty, + IObservable withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand + { + if (vmProperty is null) + { + throw new ArgumentNullException(nameof(vmProperty)); + } + + if (controlProperty is null) + { + throw new ArgumentNullException(nameof(controlProperty)); + } + + var vmExpression = Reflection.Rewrite(vmProperty.Body); + var controlExpression = Reflection.Rewrite(controlProperty.Body); + var source = Reflection.ViewModelWhenAnyValue(viewModel, view, vmExpression).Cast(); + + var bindingDisposable = BindCommandInternal(source, view, controlExpression, withParameter, toEvent); + + return new ReactiveBinding( + view, + controlExpression, + vmExpression, + source, + BindingDirection.OneWay, + bindingDisposable); + } + private static IDisposable BindCommandInternal( IObservable source, TView view, diff --git a/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs b/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs index 25a1e6b5d5..1ad482159f 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs @@ -46,4 +46,39 @@ public static IReactiveBinding BindCommand BindCommandNonGeneric( + this ICommandBinderImplementation @this, + TViewModel? viewModel, + TView view, + Expression> propertyName, + Expression> controlName, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand => + @this.BindCommandNonGeneric(viewModel, view, propertyName, controlName, Observable.Empty, toEvent); + + public static IReactiveBinding BindCommandNonGeneric( + this ICommandBinderImplementation @this, + TViewModel? viewModel, + TView view, + Expression> propertyName, + Expression> controlName, + Expression> withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand + { + if (withParameter is null) + { + throw new ArgumentNullException(nameof(withParameter)); + } + + var paramExpression = Reflection.Rewrite(withParameter.Body); + var param = Reflection.ViewModelWhenAnyValue(viewModel, view, paramExpression); + + return @this.BindCommandNonGeneric(viewModel, view, propertyName, controlName, param, toEvent); + } +} diff --git a/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs b/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs index 33b2fe978d..15f7cb04b8 100644 --- a/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs +++ b/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs @@ -35,42 +35,20 @@ internal class CreatesCommandBinding public static IDisposable BindCommandToObject(ICommand? command, object? target, IObservable commandParameter) { var type = target!.GetType(); - var binder = _bindCommandCache.Get(type); - if (binder is null) - { - throw new Exception($"Couldn't find a Command Binder for {type.FullName}"); - } - - var ret = binder.BindCommandToObject(command, target, commandParameter); - if (ret is null) - { - throw new Exception($"Couldn't bind Command Binder for {type.FullName}"); - } - + var binder = _bindCommandCache.Get(type) ?? throw new Exception($"Couldn't find a Command Binder for {type.FullName}"); + var ret = binder.BindCommandToObject(command, target, commandParameter) ?? throw new Exception($"Couldn't bind Command Binder for {type.FullName}"); return ret; } public static IDisposable BindCommandToObject(ICommand? command, object? target, IObservable commandParameter, string? eventName) { var type = target!.GetType(); - var binder = _bindCommandEventCache.Get(type); - if (binder is null) - { - throw new Exception($"Couldn't find an Event Binder for {type.FullName} and event {eventName}"); - } - + var binder = _bindCommandEventCache.Get(type) ?? throw new Exception($"Couldn't find an Event Binder for {type.FullName} and event {eventName}"); var eventArgsType = Reflection.GetEventArgsTypeForEvent(type, eventName); var mi = binder.GetType().GetTypeInfo().DeclaredMethods.First(x => x.Name == "BindCommandToObject" && x.IsGenericMethod); mi = mi.MakeGenericMethod(eventArgsType); - var ret = (IDisposable)mi.Invoke(binder, [command, target, commandParameter, eventName])!; - - // If we made it this far then this will not fail. - if (ret is null) - { - throw new Exception($"Couldn't bind Command Binder for {type.FullName} and event {eventName}"); - } - + var ret = (IDisposable)mi.Invoke(binder, [command, target, commandParameter, eventName])! ?? throw new Exception($"Couldn't bind Command Binder for {type.FullName} and event {eventName}"); return ret; } } diff --git a/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs b/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs index 2b853c029d..9cbe49e38d 100644 --- a/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs +++ b/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs @@ -55,14 +55,8 @@ public int GetAffinityForObject(Type type, bool hasEventTarget) var type = target.GetType(); var eventInfo = _defaultEventsToBind .Select(x => new { EventInfo = type.GetRuntimeEvent(x.name), Args = x.type }) - .FirstOrDefault(x => x.EventInfo is not null); - - if (eventInfo is null) - { - throw new Exception( + .FirstOrDefault(x => x.EventInfo is not null) ?? throw new Exception( $"Couldn't find a default event to bind to on {target.GetType().FullName}, specify an event explicitly"); - } - var mi = GetType().GetRuntimeMethods().First(x => x.Name == "BindCommandToObject" && x.IsGenericMethod); mi = mi.MakeGenericMethod(eventInfo.Args); diff --git a/src/ReactiveUI/Bindings/Command/ICommandBinderImplementation.cs b/src/ReactiveUI/Bindings/Command/ICommandBinderImplementation.cs index 650c06eeb4..d309d10688 100644 --- a/src/ReactiveUI/Bindings/Command/ICommandBinderImplementation.cs +++ b/src/ReactiveUI/Bindings/Command/ICommandBinderImplementation.cs @@ -63,4 +63,56 @@ IReactiveBinding BindCommand where TViewModel : class where TProp : ICommand; -} \ No newline at end of file + + /// + /// Binds the command on a ViewModel to a control on the View. + /// + /// The view model to bind to. + /// The view to bind to. + /// The name of the property on the View Model. + /// The name of the control on the View. + /// A function if we want to pass a parameter to the ICommand. + /// A event on the view that will also trigger the command. + /// The type of the view. + /// The type of the view model. + /// The type of the property on the view model. + /// The type of control on the view. + /// The type of the parameter to pass to the ICommand. + /// A reactive binding. Often only used for disposing the binding. + IReactiveBinding BindCommandNonGeneric( + TViewModel? viewModel, + TView view, + Expression> vmProperty, + Expression> controlProperty, + Expression> withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand; + + /// + /// Binds the command on a ViewModel to a control on the View. + /// + /// The view model to bind to. + /// The view to bind to. + /// The name of the property on the View Model. + /// The name of the control on the View. + /// A observable if we want to pass a parameter to the ICommand. + /// A event on the view that will also trigger the command. + /// The type of the view. + /// The type of the view model. + /// The type of the property on the view model. + /// The type of control on the view. + /// The type of the parameter to pass to the ICommand. + /// A reactive binding. Often only used for disposing the binding. + IReactiveBinding BindCommandNonGeneric( + TViewModel? viewModel, + TView view, + Expression> vmProperty, + Expression> controlProperty, + IObservable withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand; +} From 751ab52783744679da89df310903149146a82ee6 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Wed, 22 Nov 2023 08:48:21 +0000 Subject: [PATCH 2/6] Option 2 Fix For #3644 --- ...valTests.ReactiveUI.DotNet6_0.verified.txt | 26 +--- ...valTests.ReactiveUI.DotNet7_0.verified.txt | 26 +--- ...provalTests.ReactiveUI.Net4_7.verified.txt | 26 +--- .../Bindings/Command/CommandBinder.cs | 118 +---------------- .../Command/CommandBinderImplementation.cs | 119 ------------------ .../CommandBinderImplementationMixins.cs | 39 +----- .../Command/ICommandBinderImplementation.cs | 54 +------- 7 files changed, 15 insertions(+), 393 deletions(-) diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt index 428d21b6ba..63c4473be6 100644 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt @@ -81,26 +81,14 @@ namespace ReactiveUI public static class CommandBinder { public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } @@ -109,18 +97,10 @@ namespace ReactiveUI { public CommandBinderImplementation() { } public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt index a0cc917fca..89ea095473 100644 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt @@ -81,26 +81,14 @@ namespace ReactiveUI public static class CommandBinder { public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } @@ -109,18 +97,10 @@ namespace ReactiveUI { public CommandBinderImplementation() { } public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt index 2e8f3eef9a..a08268e9a0 100644 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt +++ b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt @@ -79,26 +79,14 @@ namespace ReactiveUI public static class CommandBinder { public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } @@ -107,18 +95,10 @@ namespace ReactiveUI { public CommandBinderImplementation() { } public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } diff --git a/src/ReactiveUI/Bindings/Command/CommandBinder.cs b/src/ReactiveUI/Bindings/Command/CommandBinder.cs index 915eb084be..9d278a66fc 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinder.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinder.cs @@ -44,39 +44,6 @@ static CommandBinder() /// NOTE: If this parameter is used inside WhenActivated, it's /// important to dispose the binding when the view is deactivated. public static IReactiveBinding BindCommand( - this TView view, - TViewModel? viewModel, - Expression> propertyName, - Expression> controlName, - IObservable withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand => - _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, withParameter, toEvent); - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// The parameter type. - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// The View. - /// The View model. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// The ViewModel property to pass as the - /// param of the ICommand. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - public static IReactiveBinding BindCommandNonGeneric( this TView view, TViewModel? viewModel, Expression> propertyName, @@ -86,7 +53,7 @@ public static IReactiveBinding BindCommandNonGeneric - _binderImplementation.BindCommandNonGeneric(viewModel, view, propertyName, controlName, withParameter, toEvent); + _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, withParameter, toEvent); /// /// Bind a command from the ViewModel to an explicitly specified control @@ -107,35 +74,6 @@ public static IReactiveBinding BindCommandNonGeneric public static IReactiveBinding BindCommand( - this TView view, - TViewModel? viewModel, - Expression> propertyName, - Expression> controlName, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand => - _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, toEvent); - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// The View. - /// The View model. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - public static IReactiveBinding BindCommandNonGeneric( this TView view, TViewModel? viewModel, Expression> propertyName, @@ -144,7 +82,7 @@ public static IReactiveBinding BindCommandNonGeneric - _binderImplementation.BindCommandNonGeneric(viewModel, view, propertyName, controlName, toEvent); + _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, toEvent); /// /// Bind a command from the ViewModel to an explicitly specified control @@ -168,56 +106,6 @@ public static IReactiveBinding BindCommandNonGeneric public static IReactiveBinding BindCommand( - this TView view, - TViewModel? viewModel, - Expression> propertyName, - Expression> controlName, - Expression> withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand - { -#if NET6_0_OR_GREATER - ArgumentNullException.ThrowIfNull(view); -#else - if (view is null) - { - throw new ArgumentNullException(nameof(view)); - } -#endif - - return _binderImplementation.BindCommand( - viewModel, - view, - propertyName, - controlName, - withParameter, - toEvent); - } - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// The parameter type. - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// The View. - /// The View model. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// The ViewModel property to pass as the - /// param of the ICommand. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - public static IReactiveBinding BindCommandNonGeneric( this TView view, TViewModel? viewModel, Expression> propertyName, @@ -237,7 +125,7 @@ public static IReactiveBinding BindCommandNonGeneric public IReactiveBinding BindCommand( - TViewModel? viewModel, - TView view, - Expression> vmProperty, - Expression> controlProperty, - Expression> withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand - { - if (vmProperty is null) - { - throw new ArgumentNullException(nameof(vmProperty)); - } - - if (controlProperty is null) - { - throw new ArgumentNullException(nameof(controlProperty)); - } - - var vmExpression = Reflection.Rewrite(vmProperty.Body); - var controlExpression = Reflection.Rewrite(controlProperty.Body); - var source = Reflection.ViewModelWhenAnyValue(viewModel, view, vmExpression).Cast(); - - var bindingDisposable = BindCommandInternal(source, view, controlExpression, withParameter.ToObservable(viewModel), toEvent); - - return new ReactiveBinding( - view, - controlExpression, - vmExpression, - source, - BindingDirection.OneWay, - bindingDisposable); - } - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// The parameter type. - /// The View model. - /// The View. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// The ViewModel property to pass as the - /// param of the ICommand. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - /// - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// - /// nameof(vmProperty) - /// or - /// nameof(vmProperty). - public IReactiveBinding BindCommandNonGeneric( TViewModel? viewModel, TView view, Expression> vmProperty, @@ -158,63 +96,6 @@ public IReactiveBinding BindCommandNonGeneric public IReactiveBinding BindCommand( - TViewModel? viewModel, - TView view, - Expression> vmProperty, - Expression> controlProperty, - IObservable withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand - { - if (vmProperty is null) - { - throw new ArgumentNullException(nameof(vmProperty)); - } - - if (controlProperty is null) - { - throw new ArgumentNullException(nameof(controlProperty)); - } - - var vmExpression = Reflection.Rewrite(vmProperty.Body); - var controlExpression = Reflection.Rewrite(controlProperty.Body); - var source = Reflection.ViewModelWhenAnyValue(viewModel, view, vmExpression).Cast(); - - var bindingDisposable = BindCommandInternal(source, view, controlExpression, withParameter, toEvent); - - return new ReactiveBinding( - view, - controlExpression, - vmExpression, - source, - BindingDirection.OneWay, - bindingDisposable); - } - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// The parameter type. - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// The View model. - /// The View. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// The ViewModel property to pass as the - /// param of the ICommand. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - public IReactiveBinding BindCommandNonGeneric( TViewModel? viewModel, TView view, Expression> vmProperty, diff --git a/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs b/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs index 1ad482159f..5223efea68 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs @@ -19,47 +19,12 @@ public static IReactiveBinding BindCommand> propertyName, Expression> controlName, string? toEvent = null) - where TView : class, IViewFor + where TView : class, IViewFor where TViewModel : class where TProp : ICommand => @this.BindCommand(viewModel, view, propertyName, controlName, Observable.Empty, toEvent); public static IReactiveBinding BindCommand( - this ICommandBinderImplementation @this, - TViewModel? viewModel, - TView view, - Expression> propertyName, - Expression> controlName, - Expression> withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand - { - if (withParameter is null) - { - throw new ArgumentNullException(nameof(withParameter)); - } - - var paramExpression = Reflection.Rewrite(withParameter.Body); - var param = Reflection.ViewModelWhenAnyValue(viewModel, view, paramExpression); - - return @this.BindCommand(viewModel, view, propertyName, controlName, param, toEvent); - } - - public static IReactiveBinding BindCommandNonGeneric( - this ICommandBinderImplementation @this, - TViewModel? viewModel, - TView view, - Expression> propertyName, - Expression> controlName, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand => - @this.BindCommandNonGeneric(viewModel, view, propertyName, controlName, Observable.Empty, toEvent); - - public static IReactiveBinding BindCommandNonGeneric( this ICommandBinderImplementation @this, TViewModel? viewModel, TView view, @@ -79,6 +44,6 @@ public static IReactiveBinding BindCommandNonGenericThe type of the parameter to pass to the ICommand. /// A reactive binding. Often only used for disposing the binding. IReactiveBinding BindCommand( - TViewModel? viewModel, - TView view, - Expression> vmProperty, - Expression> controlProperty, - Expression> withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand; - - /// - /// Binds the command on a ViewModel to a control on the View. - /// - /// The view model to bind to. - /// The view to bind to. - /// The name of the property on the View Model. - /// The name of the control on the View. - /// A observable if we want to pass a parameter to the ICommand. - /// A event on the view that will also trigger the command. - /// The type of the view. - /// The type of the view model. - /// The type of the property on the view model. - /// The type of control on the view. - /// The type of the parameter to pass to the ICommand. - /// A reactive binding. Often only used for disposing the binding. - IReactiveBinding BindCommand( - TViewModel? viewModel, - TView view, - Expression> vmProperty, - Expression> controlProperty, - IObservable withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand; - - /// - /// Binds the command on a ViewModel to a control on the View. - /// - /// The view model to bind to. - /// The view to bind to. - /// The name of the property on the View Model. - /// The name of the control on the View. - /// A function if we want to pass a parameter to the ICommand. - /// A event on the view that will also trigger the command. - /// The type of the view. - /// The type of the view model. - /// The type of the property on the view model. - /// The type of control on the view. - /// The type of the parameter to pass to the ICommand. - /// A reactive binding. Often only used for disposing the binding. - IReactiveBinding BindCommandNonGeneric( TViewModel? viewModel, TView view, Expression> vmProperty, @@ -105,7 +53,7 @@ IReactiveBinding BindCommandNonGenericThe type of control on the view. /// The type of the parameter to pass to the ICommand. /// A reactive binding. Often only used for disposing the binding. - IReactiveBinding BindCommandNonGeneric( + IReactiveBinding BindCommand( TViewModel? viewModel, TView view, Expression> vmProperty, From 45a92aff17809c6338be0500c14f6d904df7db54 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Wed, 22 Nov 2023 20:39:16 +0000 Subject: [PATCH 3/6] Fix API Tests (#3679) --- ...ests.ReactiveUIFody.DotNet6_0.verified.txt | 33 + ...alTests.ReactiveUIFody.Net4_7.verified.txt | 33 + .../API/ApiApprovalTests.cs | 13 +- .../{ApiApprovalBase.cs => ApiExtensions.cs} | 38 +- ...provalTests.ReactiveUI.Net4_8.verified.txt | 1019 ----------------- ...iApprovalTests.Testing.Net4_8.verified.txt | 46 - src/ReactiveUI.Tests/API/ApiApprovalTests.cs | 8 +- .../Platforms/uwp/API/UwpApiApprovalTests.cs | 26 - ...ApiApprovalTests.Blend.net472.approved.txt | 24 - ...ApiApprovalTests.Blend.Net4_8.verified.txt | 23 - .../windows-xaml/Api/XamlApiApprovalTests.cs | 7 +- ...ApprovalTests.Winforms.Net4_8.verified.txt | 109 -- .../winforms/API/WinformsApiApprovalTests.cs | 4 +- .../Platforms/wpf/API/WpfApiApprovalTests.cs | 4 +- .../{ApiApprovalBase.cs => ApiExtensions.cs} | 25 +- 15 files changed, 117 insertions(+), 1295 deletions(-) create mode 100644 src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.DotNet6_0.verified.txt create mode 100644 src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.Net4_7.verified.txt rename src/ReactiveUI.Fody.Tests/{ApiApprovalBase.cs => ApiExtensions.cs} (56%) delete mode 100644 src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_8.verified.txt delete mode 100644 src/ReactiveUI.Tests/API/ApiApprovalTests.Testing.Net4_8.verified.txt delete mode 100644 src/ReactiveUI.Tests/Platforms/uwp/API/UwpApiApprovalTests.cs delete mode 100644 src/ReactiveUI.Tests/Platforms/windows-xaml/Api/ApiApprovalTests.Blend.net472.approved.txt delete mode 100644 src/ReactiveUI.Tests/Platforms/windows-xaml/Api/XamlApiApprovalTests.Blend.Net4_8.verified.txt delete mode 100644 src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_8.verified.txt rename src/ReactiveUI.Tests/Utilities/{ApiApprovalBase.cs => ApiExtensions.cs} (63%) diff --git a/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.DotNet6_0.verified.txt b/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.DotNet6_0.verified.txt new file mode 100644 index 0000000000..591b73b116 --- /dev/null +++ b/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.DotNet6_0.verified.txt @@ -0,0 +1,33 @@ +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] +namespace ReactiveUI.Fody.Helpers +{ + [System.AttributeUsage(System.AttributeTargets.Method | System.AttributeTargets.Property)] + public sealed class ObservableAsPropertyAttribute : System.Attribute + { + public ObservableAsPropertyAttribute() { } + } + public static class ObservableAsPropertyExtensions + { + public static ReactiveUI.ObservableAsPropertyHelper ToPropertyEx(this System.IObservable item, TObj source, System.Linq.Expressions.Expression> property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : ReactiveUI.ReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToPropertyEx(this System.IObservable item, TObj source, System.Linq.Expressions.Expression> property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : ReactiveUI.ReactiveObject { } + } + [System.AttributeUsage(System.AttributeTargets.Property)] + public sealed class ReactiveAttribute : System.Attribute + { + public ReactiveAttribute() { } + } + [System.AttributeUsage(System.AttributeTargets.Property)] + public sealed class ReactiveDependencyAttribute : System.Attribute + { + public ReactiveDependencyAttribute(string targetName) { } + public string Target { get; } + public string? TargetProperty { get; set; } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.Net4_7.verified.txt b/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.Net4_7.verified.txt new file mode 100644 index 0000000000..20ec941c3a --- /dev/null +++ b/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.ReactiveUIFody.Net4_7.verified.txt @@ -0,0 +1,33 @@ +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] +namespace ReactiveUI.Fody.Helpers +{ + [System.AttributeUsage(System.AttributeTargets.Method | System.AttributeTargets.Property)] + public sealed class ObservableAsPropertyAttribute : System.Attribute + { + public ObservableAsPropertyAttribute() { } + } + public static class ObservableAsPropertyExtensions + { + public static ReactiveUI.ObservableAsPropertyHelper ToPropertyEx(this System.IObservable item, TObj source, System.Linq.Expressions.Expression> property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : ReactiveUI.ReactiveObject { } + public static ReactiveUI.ObservableAsPropertyHelper ToPropertyEx(this System.IObservable item, TObj source, System.Linq.Expressions.Expression> property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) + where TObj : ReactiveUI.ReactiveObject { } + } + [System.AttributeUsage(System.AttributeTargets.Property)] + public sealed class ReactiveAttribute : System.Attribute + { + public ReactiveAttribute() { } + } + [System.AttributeUsage(System.AttributeTargets.Property)] + public sealed class ReactiveDependencyAttribute : System.Attribute + { + public ReactiveDependencyAttribute(string targetName) { } + public string Target { get; } + public string? TargetProperty { get; set; } + } +} \ No newline at end of file diff --git a/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.cs b/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.cs index 858acec6ee..d85ea2f3e3 100644 --- a/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.cs +++ b/src/ReactiveUI.Fody.Tests/API/ApiApprovalTests.cs @@ -4,9 +4,10 @@ // See the LICENSE file in the project root for full license information. using System.Diagnostics.CodeAnalysis; - +using System.Threading.Tasks; using ReactiveUI.Fody.Helpers; - +using ReactiveUI.Tests; +using VerifyXunit; using Xunit; namespace ReactiveUI.Fody.Tests.API; @@ -18,11 +19,13 @@ namespace ReactiveUI.Fody.Tests.API; /// for version changing reasons. /// [ExcludeFromCodeCoverage] -public class ApiApprovalTests : ApiApprovalBase +[UsesVerify] +public class ApiApprovalTests { /// /// Checks the version API. /// + /// A task to monitor the process. [Fact] - public void ReactiveUIFody() => CheckApproval(typeof(ReactiveAttribute).Assembly); -} \ No newline at end of file + public Task ReactiveUIFody() => typeof(ReactiveAttribute).Assembly.CheckApproval(["ReactiveUI"]); +} diff --git a/src/ReactiveUI.Fody.Tests/ApiApprovalBase.cs b/src/ReactiveUI.Fody.Tests/ApiExtensions.cs similarity index 56% rename from src/ReactiveUI.Fody.Tests/ApiApprovalBase.cs rename to src/ReactiveUI.Fody.Tests/ApiExtensions.cs index f21a462967..8948ad3b39 100644 --- a/src/ReactiveUI.Fody.Tests/ApiApprovalBase.cs +++ b/src/ReactiveUI.Fody.Tests/ApiExtensions.cs @@ -8,40 +8,32 @@ using System.Reflection; using System.Runtime.CompilerServices; using System.Threading.Tasks; - using PublicApiGenerator; - -using VerifyTests; - using VerifyXunit; +namespace ReactiveUI.Tests; + /// -/// Tests for API approvals. +/// A helper for doing API approvals. /// [ExcludeFromCodeCoverage] -#pragma warning disable CA1050 // Declare types in namespaces -#pragma warning disable RCS1110 // Declare type inside namespace. -public abstract class ApiApprovalBase -#pragma warning restore RCS1110 // Declare type inside namespace. -#pragma warning restore CA1050 // Declare types in namespaces +[UsesVerify] +public static class ApiExtensions { /// - /// Checks the assembly to detect the public API. Generates a received/approved version of the API. + /// Checks to make sure the API is approved. /// - /// The assembly to check. - /// Auto populated file path. - /// A task to monitor the progress. - protected static Task CheckApproval(Assembly assembly, [CallerFilePath]string? filePath = null) + /// The assembly that is being checked. + /// The namespaces. + /// The caller file path. + /// + /// A Task. + /// + public static async Task CheckApproval(this Assembly assembly, string[] namespaces, [CallerFilePath] string filePath = "") { - if (filePath is null) - { - return Task.CompletedTask; - } - - var generatorOptions = new ApiGeneratorOptions { AllowNamespacePrefixes = ["ReactiveUI"] }; + var generatorOptions = new ApiGeneratorOptions { AllowNamespacePrefixes = namespaces }; var apiText = assembly.GeneratePublicApi(generatorOptions); - var verifySettings = new VerifySettings(); - return Verifier.Verify(apiText, verifySettings, filePath) + var result = await Verifier.Verify(apiText, null, filePath) .UniqueForRuntimeAndVersion() .ScrubEmptyLines() .ScrubLines(l => diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_8.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_8.verified.txt deleted file mode 100644 index 592f1af806..0000000000 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_8.verified.txt +++ /dev/null @@ -1,1019 +0,0 @@ -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidX")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Blazor")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Drawing")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Maui")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.TestRunner.Android")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno.WinUI")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uwp")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.WinUI")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -namespace ReactiveUI -{ - public static class AutoPersistHelper - { - public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ObservableCollection @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this System.IObservable> @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this TCollection collection, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject - where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } - public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.TimeSpan? interval = default) - where T : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where T : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this TCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject - where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } - } - public enum BindingDirection - { - OneWay = 0, - TwoWay = 1, - AsyncOneWay = 2, - } - public class ByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ByteToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class CanActivateViewFetcher : ReactiveUI.IActivationForViewFetcher - { - public CanActivateViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public static class ChangeSetMixin - { - public static System.IObservable CountChanged(this System.IObservable changeSet) { } - public static System.IObservable> CountChanged(this System.IObservable> changeSet) { } - public static bool HasCountChanged(this DynamicData.IChangeSet changeSet) { } - } - public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> - { - protected CombinedReactiveCommand(System.Collections.Generic.IEnumerable> childCommands, System.IObservable canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public override System.IObservable CanExecute { get; } - public override System.IObservable IsExecuting { get; } - public override System.IObservable ThrownExceptions { get; } - protected override void Dispose(bool disposing) { } - public override System.IObservable> Execute() { } - public override System.IObservable> Execute(TParam parameter) { } - public override System.IDisposable Subscribe(System.IObserver> observer) { } - } - public static class CommandBinder - { - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - } - public class CommandBinderImplementation : Splat.IEnableLogger - { - public CommandBinderImplementation() { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - } - public static class ComparerChainingExtensions - { - public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector) { } - public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } - public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector) { } - public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } - } - public class ComponentModelTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ComponentModelTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - } - public class CreatesCommandBindingViaCommandParameter : ReactiveUI.ICreatesCommandBinding - { - public CreatesCommandBindingViaCommandParameter() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding - { - public CreatesCommandBindingViaEvent() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public DecimalToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public sealed class DefaultViewLocator : ReactiveUI.IViewLocator, Splat.IEnableLogger - { - public System.Func ViewModelToViewFunc { get; set; } - public ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null) { } - } - public static class DependencyResolverMixins - { - public static void InitializeReactiveUI(this Splat.IMutableDependencyResolver resolver, params ReactiveUI.RegistrationNamespace[] registrationNamespaces) { } - public static void RegisterViewsForViewModels(this Splat.IMutableDependencyResolver resolver, System.Reflection.Assembly assembly) { } - } - public class DoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public DoubleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class DummySuspensionDriver : ReactiveUI.ISuspensionDriver - { - public DummySuspensionDriver() { } - public System.IObservable InvalidateState() { } - public System.IObservable LoadState() { } - public System.IObservable SaveState(object state) { } - } - public class EqualityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public EqualityTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - public static object? DoReferenceCast(object? from, System.Type targetType) { } - } - public static class ExpressionMixins - { - public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } - public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } - public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } - public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } - } - public interface IActivatableView { } - public interface IActivatableViewModel - { - ReactiveUI.ViewModelActivator Activator { get; } - } - public interface IActivationForViewFetcher - { - System.IObservable GetActivationForView(ReactiveUI.IActivatableView view); - int GetAffinityForView(System.Type view); - } - public interface IBindingTypeConverter : Splat.IEnableLogger - { - int GetAffinityForObjects(System.Type fromType, System.Type toType); - bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result); - } - public interface ICanActivate - { - System.IObservable Activated { get; } - System.IObservable Deactivated { get; } - } - public interface IComparerBuilder - { - System.Collections.Generic.IComparer OrderBy(System.Func selector); - System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer); - System.Collections.Generic.IComparer OrderByDescending(System.Func selector); - System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer); - } - public interface ICreatesCommandBinding - { - System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter); - System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); - int GetAffinityForObject(System.Type type, bool hasEventTarget); - } - public interface ICreatesObservableForProperty : Splat.IEnableLogger - { - int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); - System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); - } - public interface IHandleObservableErrors - { - System.IObservable ThrownExceptions { get; } - } - public interface IInteractionBinderImplementation : Splat.IEnableLogger - { - System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - } - public interface IMessageBus : Splat.IEnableLogger - { - bool IsRegistered(System.Type type, string? contract = null); - System.IObservable Listen(string? contract = null); - System.IObservable ListenIncludeLatest(string? contract = null); - System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null); - void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null); - void SendMessage(T message, string? contract = null); - } - public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public INPCObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public interface IObservedChange - { - System.Linq.Expressions.Expression? Expression { get; } - TSender Sender { get; } - TValue Value { get; } - } - public interface IPlatformOperations - { - string? GetOrientation(); - } - public interface IPropertyBinderImplementation : Splat.IEnableLogger - { - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class - ; - ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - } - public interface IPropertyBindingHook - { - bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction); - } - public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public IROObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public interface IReactiveBinding : System.IDisposable - where out TView : ReactiveUI.IViewFor - { - System.IObservable Changed { get; } - ReactiveUI.BindingDirection Direction { get; } - TView View { get; } - System.Linq.Expressions.Expression ViewExpression { get; } - System.Linq.Expressions.Expression ViewModelExpression { get; } - } - public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, System.IDisposable - { - System.IObservable CanExecute { get; } - System.IObservable IsExecuting { get; } - } - public interface IReactiveNotifyPropertyChanged - { - System.IObservable> Changed { get; } - System.IObservable> Changing { get; } - System.IDisposable SuppressChangeNotifications(); - } - public interface IReactiveObject : Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - void RaisePropertyChanged(System.ComponentModel.PropertyChangedEventArgs args); - void RaisePropertyChanging(System.ComponentModel.PropertyChangingEventArgs args); - } - public static class IReactiveObjectExtensions - { - public static TRet RaiseAndSetIfChanged(this TObj reactiveObject, ref TRet backingField, TRet newValue, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TObj : ReactiveUI.IReactiveObject { } - public static void RaisePropertyChanged(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TSender : ReactiveUI.IReactiveObject { } - public static void RaisePropertyChanging(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TSender : ReactiveUI.IReactiveObject { } - public static void SubscribePropertyChangedEvents(this TSender reactiveObject) - where TSender : ReactiveUI.IReactiveObject { } - public static void SubscribePropertyChangingEvents(this TSender reactiveObject) - where TSender : ReactiveUI.IReactiveObject { } - } - public interface IReactivePropertyChangedEventArgs - { - string? PropertyName { get; } - TSender Sender { get; } - } - public interface IRoutableViewModel : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - ReactiveUI.IScreen HostScreen { get; } - string? UrlPathSegment { get; } - } - public interface IScreen - { - ReactiveUI.RoutingState Router { get; } - } - public interface ISetMethodBindingConverter : Splat.IEnableLogger - { - int GetAffinityForObjects(System.Type? fromType, System.Type? toType); - object? PerformSet(object? toTarget, object? newValue, object?[]? arguments); - } - public interface ISuspensionDriver - { - System.IObservable InvalidateState(); - System.IObservable LoadState(); - System.IObservable SaveState(object state); - } - public interface ISuspensionHost : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - object? AppState { get; set; } - System.Func? CreateNewAppState { get; set; } - System.IObservable IsLaunchingNew { get; set; } - System.IObservable IsResuming { get; set; } - System.IObservable IsUnpausing { get; set; } - System.IObservable ShouldInvalidateState { get; set; } - System.IObservable ShouldPersistState { get; set; } - } - public interface IViewFor : ReactiveUI.IActivatableView - { - object? ViewModel { get; set; } - } - public interface IViewFor : ReactiveUI.IActivatableView, ReactiveUI.IViewFor - where T : class - { - T ViewModel { get; set; } - } - public interface IViewLocator : Splat.IEnableLogger - { - ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null); - } - public class IntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public IntegerToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class InteractionBinderImplementation : ReactiveUI.IInteractionBinderImplementation, Splat.IEnableLogger - { - public InteractionBinderImplementation() { } - public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class InteractionBindingMixins - { - public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public sealed class InteractionContext - { - public TInput Input { get; } - public bool IsHandled { get; } - public TOutput GetOutput() { } - public void SetOutput(TOutput output) { } - } - public class Interaction - { - public Interaction(System.Reactive.Concurrency.IScheduler? handlerScheduler = null) { } - protected System.Func, System.IObservable>[] GetHandlers() { } - public virtual System.IObservable Handle(TInput input) { } - public System.IDisposable RegisterHandler(System.Action> handler) { } - public System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler) { } - public System.IDisposable RegisterHandler(System.Func, System.IObservable> handler) { } - } - public class LongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public LongToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class MessageBus : ReactiveUI.IMessageBus, Splat.IEnableLogger - { - public MessageBus() { } - public static ReactiveUI.IMessageBus Current { get; set; } - public bool IsRegistered(System.Type type, string? contract = null) { } - public System.IObservable Listen(string? contract = null) { } - public System.IObservable ListenIncludeLatest(string? contract = null) { } - public System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null) { } - public void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null) { } - public void SendMessage(T message, string? contract = null) { } - } - public class NullableByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableByteToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableDecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableDecimalToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableDoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableDoubleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableIntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableIntegerToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableLongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableLongToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableShortToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableSingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableSingleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public static class OAPHCreationHelperMixin - { - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - } - public sealed class ObservableAsPropertyHelper : ReactiveUI.IHandleObservableErrors, Splat.IEnableLogger, System.IDisposable - { - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, System.Func? getInitialValue = null, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public bool IsSubscribed { get; } - public System.IObservable ThrownExceptions { get; } - public T Value { get; } - public void Dispose() { } - public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - } - public static class ObservableFuncMixins - { - public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } - } - public static class ObservableLoggingMixin - { - public static System.IObservable Log(this System.IObservable @this, TObj logObject, string? message = null, System.Func? stringifier = null) - where TObj : Splat.IEnableLogger { } - public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.IObservable? next = null, string? message = null) - where TObj : Splat.IEnableLogger { } - public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.Func> next, string? message = null) - where TObj : Splat.IEnableLogger - where TException : System.Exception { } - } - public static class ObservableMixins - { - public static System.IObservable WhereNotNull(this System.IObservable observable) { } - } - public class ObservedChange : ReactiveUI.IObservedChange - { - public ObservedChange(TSender sender, System.Linq.Expressions.Expression? expression, TValue value) { } - public System.Linq.Expressions.Expression? Expression { get; } - public TSender Sender { get; } - public TValue Value { get; } - } - public static class ObservedChangedMixin - { - public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } - public static TValue GetValue(this ReactiveUI.IObservedChange item) { } - public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } - public static System.IObservable Value(this System.IObservable> item) { } - } - public static class OrderedComparer - { - public static ReactiveUI.IComparerBuilder For() { } - public static ReactiveUI.IComparerBuilder For(System.Collections.Generic.IEnumerable enumerable) { } - } - public static class OrderedComparer - { - public static System.Collections.Generic.IComparer OrderBy(System.Func selector) { } - public static System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer) { } - public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector) { } - public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer) { } - } - public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public POCOObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public static class PlatformRegistrationManager - { - public static void SetRegistrationNamespaces(params ReactiveUI.RegistrationNamespace[] namespaces) { } - } - public class PlatformRegistrations - { - public PlatformRegistrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - public class PropertyBinderImplementation : ReactiveUI.IPropertyBinderImplementation, Splat.IEnableLogger - { - public PropertyBinderImplementation() { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class { } - public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class PropertyBindingMixins - { - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func vmToViewConverter, System.Func viewToVmConverter) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static System.IDisposable BindTo(this System.IObservable @this, TTarget? target, System.Linq.Expressions.Expression> property, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class { } - public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class ReactiveCommand - { - public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - } - public abstract class ReactiveCommandBase : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable, System.Windows.Input.ICommand - { - protected ReactiveCommandBase() { } - public abstract System.IObservable CanExecute { get; } - public abstract System.IObservable IsExecuting { get; } - public abstract System.IObservable ThrownExceptions { get; } - public void Dispose() { } - protected abstract void Dispose(bool disposing); - public abstract System.IObservable Execute(); - public abstract System.IObservable Execute(TParam parameter); - protected virtual bool ICommandCanExecute(object? parameter) { } - protected virtual void ICommandExecute(object? parameter) { } - protected void OnCanExecuteChanged(bool newValue) { } - public abstract System.IDisposable Subscribe(System.IObserver observer); - } - public static class ReactiveCommandMixins - { - public static System.IDisposable InvokeCommand(this System.IObservable item, System.Windows.Input.ICommand? command) { } - public static System.IDisposable InvokeCommand(this System.IObservable item, ReactiveUI.ReactiveCommandBase? command) { } - public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) - where TTarget : class { } - public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) - where TTarget : class { } - } - public class ReactiveCommand : ReactiveUI.ReactiveCommandBase - { - protected ReactiveCommand(System.Func> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public override System.IObservable CanExecute { get; } - public override System.IObservable IsExecuting { get; } - public override System.IObservable ThrownExceptions { get; } - protected override void Dispose(bool disposing) { } - public override System.IObservable Execute() { } - public override System.IObservable Execute(TParam parameter) { } - public override System.IDisposable Subscribe(System.IObserver observer) { } - } - public static class ReactiveNotifyPropertyChangedMixin - { - public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange = false, bool skipInitial = true) { } - public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange = false) - where TSender : class { } - public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange = false, bool skipInitial = true, bool suppressWarnings = false) { } - } - [System.Runtime.Serialization.DataContract] - public class ReactiveObject : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public ReactiveObject() { } - [System.Runtime.Serialization.IgnoreDataMember] - public System.IObservable> Changed { get; } - [System.Runtime.Serialization.IgnoreDataMember] - public System.IObservable> Changing { get; } - [System.Runtime.Serialization.IgnoreDataMember] - public System.IObservable ThrownExceptions { get; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - public bool AreChangeNotificationsEnabled() { } - public System.IDisposable DelayChangeNotifications() { } - public System.IDisposable SuppressChangeNotifications() { } - } - public class ReactivePropertyChangedEventArgs : System.ComponentModel.PropertyChangedEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs - { - public ReactivePropertyChangedEventArgs(TSender sender, string propertyName) { } - public TSender Sender { get; } - } - public class ReactivePropertyChangingEventArgs : System.ComponentModel.PropertyChangingEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs - { - public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { } - public TSender Sender { get; } - } - [System.Runtime.Serialization.DataContract] - public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable - { - public ReactiveRecord() { } - [System.Runtime.Serialization.IgnoreDataMember] - public System.IObservable> Changed { get; } - [System.Runtime.Serialization.IgnoreDataMember] - public System.IObservable> Changing { get; } - protected virtual System.Type EqualityContract { get; } - [System.Runtime.Serialization.IgnoreDataMember] - public System.IObservable ThrownExceptions { get; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - public bool AreChangeNotificationsEnabled() { } - public System.IDisposable DelayChangeNotifications() { } - public System.IDisposable SuppressChangeNotifications() { } - } - public static class Reflection - { - public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } - public static System.Type GetEventArgsTypeForEvent(System.Type type, string? eventName) { } - public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } - public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } - public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } - public static System.Action? GetValueSetterOrThrow(System.Reflection.MemberInfo? member) { } - public static bool IsStatic(this System.Reflection.PropertyInfo item) { } - public static System.Type? ReallyFindType(string? type, bool throwOnFailure) { } - public static System.Linq.Expressions.Expression Rewrite(System.Linq.Expressions.Expression? expression) { } - public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } - public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } - } - public enum RegistrationNamespace - { - None = 0, - XamForms = 1, - Winforms = 2, - Wpf = 3, - Uno = 4, - UnoWinUI = 5, - Blazor = 6, - Drawing = 7, - Avalonia = 8, - Maui = 9, - Uwp = 10, - WinUI = 11, - } - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - public static class RoutableViewModelMixin - { - public static System.IDisposable WhenNavigatedTo(this ReactiveUI.IRoutableViewModel item, System.Func onNavigatedTo) { } - public static System.IObservable WhenNavigatedToObservable(this ReactiveUI.IRoutableViewModel item) { } - public static System.IObservable WhenNavigatingFromObservable(this ReactiveUI.IRoutableViewModel item) { } - } - [System.Runtime.Serialization.DataContract] - public class RoutingState : ReactiveUI.ReactiveObject - { - public RoutingState(System.Reactive.Concurrency.IScheduler? scheduler = null) { } - [System.Runtime.Serialization.IgnoreDataMember] - public System.IObservable CurrentViewModel { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - public ReactiveUI.ReactiveCommand Navigate { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - public ReactiveUI.ReactiveCommand NavigateAndReset { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - public ReactiveUI.ReactiveCommand NavigateBack { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - public System.IObservable> NavigationChanged { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - public System.Collections.ObjectModel.ObservableCollection NavigationStack { get; } - } - public static class RoutingStateMixins - { - public static T? FindViewModelInStack(this ReactiveUI.RoutingState item) - where T : ReactiveUI.IRoutableViewModel { } - public static ReactiveUI.IRoutableViewModel? GetCurrentViewModel(this ReactiveUI.RoutingState item) { } - } - public static class RxApp - { - public const int BigCacheLimit = 256; - public const int SmallCacheLimit = 64; - public static System.IObserver DefaultExceptionHandler { get; set; } - public static System.Reactive.Concurrency.IScheduler MainThreadScheduler { get; set; } - public static bool SuppressViewCommandBindingMessage { get; set; } - public static ReactiveUI.ISuspensionHost SuspensionHost { get; set; } - public static System.Reactive.Concurrency.IScheduler TaskpoolScheduler { get; set; } - } - public class ScheduledSubject : System.IDisposable, System.IObservable, System.IObserver, System.Reactive.Subjects.ISubject, System.Reactive.Subjects.ISubject - { - public ScheduledSubject(System.Reactive.Concurrency.IScheduler scheduler, System.IObserver? defaultObserver = null, System.Reactive.Subjects.ISubject? defaultSubject = null) { } - public void Dispose() { } - protected virtual void Dispose(bool isDisposing) { } - public void OnCompleted() { } - public void OnError(System.Exception error) { } - public void OnNext(T value) { } - public System.IDisposable Subscribe(System.IObserver observer) { } - } - public class ShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ShortToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - [System.AttributeUsage(System.AttributeTargets.Class)] - public sealed class SingleInstanceViewAttribute : System.Attribute - { - public SingleInstanceViewAttribute() { } - } - public class SingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public SingleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class StringConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public StringConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - } - public static class SuspensionHostExtensions - { - public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } - public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) - where T : class { } - public static System.IDisposable SetupDefaultSuspendResume(this ReactiveUI.ISuspensionHost item, ReactiveUI.ISuspensionDriver? driver = null) { } - } - public enum TriggerUpdate - { - ViewToViewModel = 0, - ViewModelToView = 1, - } - [System.Serializable] - public class UnhandledErrorException : System.Exception - { - public UnhandledErrorException() { } - public UnhandledErrorException(string message) { } - protected UnhandledErrorException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public UnhandledErrorException(string message, System.Exception innerException) { } - } - [System.Serializable] - public class UnhandledInteractionException : System.Exception - { - public UnhandledInteractionException() { } - public UnhandledInteractionException(string message) { } - public UnhandledInteractionException(ReactiveUI.Interaction interaction, TInput input) { } - protected UnhandledInteractionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public UnhandledInteractionException(string message, System.Exception innerException) { } - public TInput Input { get; } - public ReactiveUI.Interaction? Interaction { get; } - public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - [System.AttributeUsage(System.AttributeTargets.Class)] - public sealed class ViewContractAttribute : System.Attribute - { - public ViewContractAttribute(string contract) { } - public string Contract { get; } - } - public static class ViewForMixins - { - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action> block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Func> block) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block, ReactiveUI.IViewFor view) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action block, ReactiveUI.IViewFor? view = null) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block, ReactiveUI.IViewFor? view) { } - } - public static class ViewLocator - { - public static ReactiveUI.IViewLocator Current { get; } - } - [System.Serializable] - public class ViewLocatorNotFoundException : System.Exception - { - public ViewLocatorNotFoundException() { } - public ViewLocatorNotFoundException(string message) { } - protected ViewLocatorNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public ViewLocatorNotFoundException(string message, System.Exception innerException) { } - } - public sealed class ViewModelActivator : System.IDisposable - { - public ViewModelActivator() { } - public System.IObservable Activated { get; } - public System.IObservable Deactivated { get; } - public System.IDisposable Activate() { } - public void Deactivate(bool ignoreRefCount = false) { } - public void Dispose() { } - } - public class WaitForDispatcherScheduler : System.Reactive.Concurrency.IScheduler - { - public WaitForDispatcherScheduler(System.Func schedulerFactory) { } - public System.DateTimeOffset Now { get; } - public System.IDisposable Schedule(TState state, System.Func action) { } - public System.IDisposable Schedule(TState state, System.DateTimeOffset dueTime, System.Func action) { } - public System.IDisposable Schedule(TState state, System.TimeSpan dueTime, System.Func action) { } - } - public static class WhenAnyMixin - { - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Linq.Expressions.Expression? property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func selector) { } - } - public static class WhenAnyObservableMixin - { - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12, System.Func selector) - where TSender : class { } - } -} -namespace System.Reactive.Disposables -{ - public static class DisposableMixins { } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.Testing.Net4_8.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.Testing.Net4_8.verified.txt deleted file mode 100644 index cc7f911bf2..0000000000 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.Testing.Net4_8.verified.txt +++ /dev/null @@ -1,46 +0,0 @@ -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -namespace ReactiveUI.Testing -{ - public interface IBuilder { } - public static class IBuilderExtensions - { - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, System.Collections.Generic.IEnumerable values) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, out TField field, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.IDictionary keyValuePair) - where TKey : notnull { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.KeyValuePair keyValuePair) - where TBuilder : ReactiveUI.Testing.IBuilder - where TKey : notnull { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, TKey key, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder - where TKey : notnull { } - } - public static class MessageBusExtensions - { - public static void With(this ReactiveUI.IMessageBus messageBus, System.Action block) { } - public static TRet With(this ReactiveUI.IMessageBus messageBus, System.Func block) { } - public static System.IDisposable WithMessageBus(this ReactiveUI.IMessageBus messageBus) { } - } - public static class SchedulerExtensions - { - public static void AdvanceByMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static void AdvanceToMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static long FromTimeSpan(this Microsoft.Reactive.Testing.TestScheduler scheduler, System.TimeSpan span) { } - public static Microsoft.Reactive.Testing.Recorded> OnCompletedAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static Microsoft.Reactive.Testing.Recorded> OnErrorAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, System.Exception ex) { } - public static Microsoft.Reactive.Testing.Recorded> OnNextAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, T value) { } - public static void With(this T scheduler, System.Action block) - where T : System.Reactive.Concurrency.IScheduler { } - public static TRet With(this T scheduler, System.Func block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func> block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.IDisposable WithScheduler(System.Reactive.Concurrency.IScheduler scheduler) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.cs b/src/ReactiveUI.Tests/API/ApiApprovalTests.cs index bbc292a3ee..27ef1d3263 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.cs +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.cs @@ -3,7 +3,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for full license information. -#if !NET8_0 using VerifyXunit; namespace ReactiveUI.Tests.API; @@ -13,20 +12,19 @@ namespace ReactiveUI.Tests.API; /// [ExcludeFromCodeCoverage] [UsesVerify] -public class ApiApprovalTests : ApiApprovalBase +public class ApiApprovalTests { /// /// Generates public API for the ReactiveUI.Testing API. /// /// A task to monitor the process. [Fact] - public Task Testing() => CheckApproval(typeof(Testing.SchedulerExtensions).Assembly); + public Task Testing() => typeof(Testing.SchedulerExtensions).Assembly.CheckApproval(["ReactiveUI"]); /// /// Generates public API for the ReactiveUI API. /// /// A task to monitor the process. [Fact] - public Task ReactiveUI() => CheckApproval(typeof(RxApp).Assembly); + public Task ReactiveUI() => typeof(RxApp).Assembly.CheckApproval(["ReactiveUI"]); } -#endif diff --git a/src/ReactiveUI.Tests/Platforms/uwp/API/UwpApiApprovalTests.cs b/src/ReactiveUI.Tests/Platforms/uwp/API/UwpApiApprovalTests.cs deleted file mode 100644 index 7e8196ba1e..0000000000 --- a/src/ReactiveUI.Tests/Platforms/uwp/API/UwpApiApprovalTests.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2022 .NET Foundation and Contributors. All rights reserved. -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for full license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using ReactiveUI; -using Xunit; - -namespace ReactiveUI.Tests.Uwp -{ - [ExcludeFromCodeCoverage] - public class UwpApiApprovalTests : ApiApprovalBase - { - [Fact] - public void Uwp() - { - CheckApproval(typeof(WinRTAppDataDriver).Assembly); - } - } -} diff --git a/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/ApiApprovalTests.Blend.net472.approved.txt b/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/ApiApprovalTests.Blend.net472.approved.txt deleted file mode 100644 index 9a084971b1..0000000000 --- a/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/ApiApprovalTests.Blend.net472.approved.txt +++ /dev/null @@ -1,24 +0,0 @@ -[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/reactiveui/reactiveui")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -namespace ReactiveUI.Blend -{ - public class FollowObservableStateBehavior : Microsoft.Xaml.Behaviors.Behavior - { - public static readonly System.Windows.DependencyProperty StateObservableProperty; - public static readonly System.Windows.DependencyProperty TargetObjectProperty; - public FollowObservableStateBehavior() { } - public bool AutoResubscribeOnError { get; set; } - public System.IObservable StateObservable { get; set; } - public System.Windows.FrameworkElement TargetObject { get; set; } - protected override void OnDetaching() { } - protected static void OnStateObservableChanged(System.Windows.DependencyObject? sender, System.Windows.DependencyPropertyChangedEventArgs e) { } - } - public class ObservableTrigger : Microsoft.Xaml.Behaviors.TriggerBase - { - public static readonly System.Windows.DependencyProperty ObservableProperty; - public ObservableTrigger() { } - public bool AutoResubscribeOnError { get; set; } - public System.IObservable Observable { get; set; } - protected static void OnObservableChanged(System.Windows.DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/XamlApiApprovalTests.Blend.Net4_8.verified.txt b/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/XamlApiApprovalTests.Blend.Net4_8.verified.txt deleted file mode 100644 index a5c2269f57..0000000000 --- a/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/XamlApiApprovalTests.Blend.Net4_8.verified.txt +++ /dev/null @@ -1,23 +0,0 @@ -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -namespace ReactiveUI.Blend -{ - public class FollowObservableStateBehavior : Microsoft.Xaml.Behaviors.Behavior - { - public static readonly System.Windows.DependencyProperty StateObservableProperty; - public static readonly System.Windows.DependencyProperty TargetObjectProperty; - public FollowObservableStateBehavior() { } - public bool AutoResubscribeOnError { get; set; } - public System.IObservable StateObservable { get; set; } - public System.Windows.FrameworkElement TargetObject { get; set; } - protected override void OnDetaching() { } - protected static void OnStateObservableChanged(System.Windows.DependencyObject? sender, System.Windows.DependencyPropertyChangedEventArgs e) { } - } - public class ObservableTrigger : Microsoft.Xaml.Behaviors.TriggerBase - { - public static readonly System.Windows.DependencyProperty ObservableProperty; - public ObservableTrigger() { } - public bool AutoResubscribeOnError { get; set; } - public System.IObservable Observable { get; set; } - protected static void OnObservableChanged(System.Windows.DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/XamlApiApprovalTests.cs b/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/XamlApiApprovalTests.cs index aaff2cd52b..80aa6f5d30 100644 --- a/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/XamlApiApprovalTests.cs +++ b/src/ReactiveUI.Tests/Platforms/windows-xaml/Api/XamlApiApprovalTests.cs @@ -3,18 +3,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for full license information. +using VerifyXunit; + namespace ReactiveUI.Tests.Xaml; /// /// API approvals for the xaml project. /// [ExcludeFromCodeCoverage] -public class XamlApiApprovalTests : ApiApprovalBase +[UsesVerify] +public class XamlApiApprovalTests { /// /// Generates the public API for the blend project. /// /// A task to monitor the process. [Fact] - public Task Blend() => CheckApproval(typeof(Blend.FollowObservableStateBehavior).Assembly); + public Task Blend() => typeof(Blend.FollowObservableStateBehavior).Assembly.CheckApproval(["ReactiveUI"]); } diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_8.verified.txt b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_8.verified.txt deleted file mode 100644 index 92e5468102..0000000000 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_8.verified.txt +++ /dev/null @@ -1,109 +0,0 @@ -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -namespace ReactiveUI.Winforms -{ - public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher, Splat.IEnableLogger - { - public ActivationForViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public class ContentControlBindingHook : ReactiveUI.IPropertyBindingHook - { - public ContentControlBindingHook() { } - public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } - } - public class CreatesWinformsCommandBinding : ReactiveUI.ICreatesCommandBinding - { - public CreatesWinformsCommandBinding() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class PanelSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public PanelSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - public class PlatformOperations : ReactiveUI.IPlatformOperations - { - public PlatformOperations() { } - public string? GetOrientation() { } - } - public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public ReactiveUserControl() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The ViewModel.")] - [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public TViewModel ViewModel { get; set; } - protected override void Dispose(bool disposing) { } - } - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class RoutedControlHost : System.Windows.Forms.UserControl, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public RoutedControlHost() { } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The router.")] - public ReactiveUI.RoutingState? Router { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class TableContentSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public TableContentSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class ViewModelControlHost : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IReactiveObject, ReactiveUI.IViewFor, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public ViewModelControlHost() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.DefaultValue(true)] - [System.ComponentModel.Description("Cache Views")] - public bool CacheViews { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The Current View")] - public object? Content { get; set; } - public System.Windows.Forms.Control? CurrentView { get; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The viewmodel to host.")] - public object? ViewModel { get; set; } - public static bool DefaultCacheViewsEnabled { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class WinformsCreatesObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public WinformsCreatesObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.cs b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.cs index 208befe935..a628403e6e 100644 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.cs +++ b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.cs @@ -12,12 +12,12 @@ namespace ReactiveUI.Tests; /// [ExcludeFromCodeCoverage] [UsesVerify] -public class WinformsApiApprovalTests : ApiApprovalBase +public class WinformsApiApprovalTests { /// /// Checks the approved vs the received API. /// /// A task to monitor the process. [Fact] - public Task Winforms() => CheckApproval(typeof(ReactiveUI.Winforms.WinformsCreatesObservableForProperty).Assembly); + public Task Winforms() => typeof(ReactiveUI.Winforms.WinformsCreatesObservableForProperty).Assembly.CheckApproval(["ReactiveUI"]); } diff --git a/src/ReactiveUI.Tests/Platforms/wpf/API/WpfApiApprovalTests.cs b/src/ReactiveUI.Tests/Platforms/wpf/API/WpfApiApprovalTests.cs index d3b35be6f3..51523c4318 100644 --- a/src/ReactiveUI.Tests/Platforms/wpf/API/WpfApiApprovalTests.cs +++ b/src/ReactiveUI.Tests/Platforms/wpf/API/WpfApiApprovalTests.cs @@ -12,12 +12,12 @@ namespace ReactiveUI.Tests.Wpf; /// [ExcludeFromCodeCoverage] [UsesVerify] -public class WpfApiApprovalTests : ApiApprovalBase +public class WpfApiApprovalTests { /// /// Checks the approved vs the received API. /// /// A task to monitor the process. [Fact] - public Task Wpf() => CheckApproval(typeof(ReactiveWindow<>).Assembly); + public Task Wpf() => typeof(ReactiveWindow<>).Assembly.CheckApproval(["ReactiveUI"]); } diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalBase.cs b/src/ReactiveUI.Tests/Utilities/ApiExtensions.cs similarity index 63% rename from src/ReactiveUI.Tests/Utilities/ApiApprovalBase.cs rename to src/ReactiveUI.Tests/Utilities/ApiExtensions.cs index cc2679fba1..526c131965 100644 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalBase.cs +++ b/src/ReactiveUI.Tests/Utilities/ApiExtensions.cs @@ -12,20 +12,27 @@ namespace ReactiveUI.Tests; +/// +/// A helper for doing API approvals. +/// [ExcludeFromCodeCoverage] [UsesVerify] -public abstract class ApiApprovalBase +public static class ApiExtensions { - protected static Task CheckApproval(Assembly assembly, [CallerFilePath]string? filePath = null) + /// + /// Checks to make sure the API is approved. + /// + /// The assembly that is being checked. + /// The namespaces. + /// The caller file path. + /// + /// A Task. + /// + public static async Task CheckApproval(this Assembly assembly, string[] namespaces, [CallerFilePath] string filePath = "") { - if (filePath is null) - { - return Task.CompletedTask; - } - - var generatorOptions = new ApiGeneratorOptions { AllowNamespacePrefixes = ["ReactiveUI"] }; + var generatorOptions = new ApiGeneratorOptions { AllowNamespacePrefixes = namespaces }; var apiText = assembly.GeneratePublicApi(generatorOptions); - return Verifier.Verify(apiText, null, filePath) + var result = await Verifier.Verify(apiText, null, filePath) .UniqueForRuntimeAndVersion() .ScrubEmptyLines() .ScrubLines(l => From bf6059d0db6b16368992155437cb7bed2241ab34 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Wed, 22 Nov 2023 21:13:47 +0000 Subject: [PATCH 4/6] Rebase to Main --- ...valTests.ReactiveUI.DotNet6_0.verified.txt | 20 +++ ...valTests.ReactiveUI.DotNet7_0.verified.txt | 20 +++ ...valTests.ReactiveUI.DotNet8_0.verified.txt | 20 +++ ...provalTests.ReactiveUI.Net4_7.verified.txt | 20 +++ ...rovalTests.Winforms.DotNet6_0.verified.txt | 5 + ...rovalTests.Winforms.DotNet7_0.verified.txt | 5 + ...rovalTests.Winforms.DotNet8_0.verified.txt | 5 + ...ApprovalTests.Winforms.Net4_7.verified.txt | 5 + .../ReactiveUserControlNonGeneric.Designer.cs | 23 ++++ .../ReactiveUserControlNonGeneric.cs | 39 ++++++ .../Bindings/Command/CommandBinder.cs | 112 +++++++++++++++++ .../Command/CommandBinderImplementation.cs | 119 ++++++++++++++++++ .../CommandBinderImplementationMixins.cs | 37 +++++- .../Bindings/Command/CreatesCommandBinding.cs | 30 +---- .../Command/CreatesCommandBindingViaEvent.cs | 8 +- .../Command/ICommandBinderImplementation.cs | 54 +++++++- 16 files changed, 487 insertions(+), 35 deletions(-) create mode 100644 src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.Designer.cs create mode 100644 src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.cs diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt index 72ceb2ac70..428d21b6ba 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt @@ -92,6 +92,18 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -104,6 +116,14 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt index 7ba5eb2379..a0cc917fca 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt @@ -92,6 +92,18 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -104,6 +116,14 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt index 5e64bd4d15..88019adb36 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt @@ -92,6 +92,18 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -104,6 +116,14 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt index 8bf6d33d37..2e8f3eef9a 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt @@ -90,6 +90,18 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -102,6 +114,14 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } + public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + where TView : class, ReactiveUI.IViewFor + where TViewModel : class + where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt index af951628a1..5d90003771 100644 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt +++ b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt @@ -32,6 +32,11 @@ namespace ReactiveUI.Winforms public PlatformOperations() { } public string? GetOrientation() { } } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor where TViewModel : class { diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt index e576e83488..f8bac7dbb5 100644 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt +++ b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt @@ -32,6 +32,11 @@ namespace ReactiveUI.Winforms public PlatformOperations() { } public string? GetOrientation() { } } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor where TViewModel : class { diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt index ee964cd932..32abdea373 100644 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt +++ b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt @@ -32,6 +32,11 @@ namespace ReactiveUI.Winforms public PlatformOperations() { } public string? GetOrientation() { } } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor where TViewModel : class { diff --git a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt index 92e5468102..3b64ac1766 100644 --- a/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt +++ b/src/ReactiveUI.Tests/Platforms/winforms/API/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt @@ -30,6 +30,11 @@ namespace ReactiveUI.Winforms public PlatformOperations() { } public string? GetOrientation() { } } + public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor + { + public ReactiveUserControlNonGeneric() { } + protected override void Dispose(bool disposing) { } + } public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor where TViewModel : class { diff --git a/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.Designer.cs b/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.Designer.cs new file mode 100644 index 0000000000..7648d0a303 --- /dev/null +++ b/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.Designer.cs @@ -0,0 +1,23 @@ +namespace ReactiveUI.Winforms; + +partial class ReactiveUserControlNonGeneric +{ + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + } + + #endregion +} diff --git a/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.cs b/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.cs new file mode 100644 index 0000000000..0431b26499 --- /dev/null +++ b/src/ReactiveUI.Winforms/ReactiveUserControlNonGeneric.cs @@ -0,0 +1,39 @@ +// Copyright (c) 2023 .NET Foundation and Contributors. All rights reserved. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Windows.Forms; + +namespace ReactiveUI.Winforms; + +/// +/// This is an UserControl that is both and UserControl and has a ReactiveObject powers +/// (i.e. you can call RaiseAndSetIfChanged). +/// +/// +/// +public partial class ReactiveUserControlNonGeneric : UserControl, IViewFor +{ + /// + /// Initializes a new instance of the class. + /// + public ReactiveUserControlNonGeneric() => InitializeComponent(); + + /// + object? IViewFor.ViewModel { get; set; } + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing) + { + components?.Dispose(); + } + + base.Dispose(disposing); + } +} diff --git a/src/ReactiveUI/Bindings/Command/CommandBinder.cs b/src/ReactiveUI/Bindings/Command/CommandBinder.cs index 241e0c7145..915eb084be 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinder.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinder.cs @@ -55,6 +55,39 @@ public static IReactiveBinding BindCommand _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, withParameter, toEvent); + /// + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// The parameter type. + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// The View. + /// The View model. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// The ViewModel property to pass as the + /// param of the ICommand. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + public static IReactiveBinding BindCommandNonGeneric( + this TView view, + TViewModel? viewModel, + Expression> propertyName, + Expression> controlName, + IObservable withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand => + _binderImplementation.BindCommandNonGeneric(viewModel, view, propertyName, controlName, withParameter, toEvent); + /// /// Bind a command from the ViewModel to an explicitly specified control /// on the View. @@ -84,6 +117,35 @@ public static IReactiveBinding BindCommand _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, toEvent); + /// + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// The View. + /// The View model. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + public static IReactiveBinding BindCommandNonGeneric( + this TView view, + TViewModel? viewModel, + Expression> propertyName, + Expression> controlName, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand => + _binderImplementation.BindCommandNonGeneric(viewModel, view, propertyName, controlName, toEvent); + /// /// Bind a command from the ViewModel to an explicitly specified control /// on the View. @@ -133,4 +195,54 @@ public static IReactiveBinding BindCommand + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// The parameter type. + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// The View. + /// The View model. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// The ViewModel property to pass as the + /// param of the ICommand. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + public static IReactiveBinding BindCommandNonGeneric( + this TView view, + TViewModel? viewModel, + Expression> propertyName, + Expression> controlName, + Expression> withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand + { +#if NET6_0_OR_GREATER + ArgumentNullException.ThrowIfNull(view); +#else + if (view is null) + { + throw new ArgumentNullException(nameof(view)); + } +#endif + + return _binderImplementation.BindCommandNonGeneric( + viewModel, + view, + propertyName, + controlName, + withParameter, + toEvent); + } } diff --git a/src/ReactiveUI/Bindings/Command/CommandBinderImplementation.cs b/src/ReactiveUI/Bindings/Command/CommandBinderImplementation.cs index 2cf6e67b8d..64f1aec08f 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinderImplementation.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinderImplementation.cs @@ -74,6 +74,68 @@ public IReactiveBinding BindCommand + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// The parameter type. + /// The View model. + /// The View. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// The ViewModel property to pass as the + /// param of the ICommand. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + /// + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// + /// nameof(vmProperty) + /// or + /// nameof(vmProperty). + public IReactiveBinding BindCommandNonGeneric( + TViewModel? viewModel, + TView view, + Expression> vmProperty, + Expression> controlProperty, + Expression> withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand + { + if (vmProperty is null) + { + throw new ArgumentNullException(nameof(vmProperty)); + } + + if (controlProperty is null) + { + throw new ArgumentNullException(nameof(controlProperty)); + } + + var vmExpression = Reflection.Rewrite(vmProperty.Body); + var controlExpression = Reflection.Rewrite(controlProperty.Body); + var source = Reflection.ViewModelWhenAnyValue(viewModel, view, vmExpression).Cast(); + + var bindingDisposable = BindCommandInternal(source, view, controlExpression, withParameter.ToObservable(viewModel), toEvent); + + return new ReactiveBinding( + view, + controlExpression, + vmExpression, + source, + BindingDirection.OneWay, + bindingDisposable); + } + /// /// Bind a command from the ViewModel to an explicitly specified control /// on the View. @@ -131,6 +193,63 @@ public IReactiveBinding BindCommand + /// Bind a command from the ViewModel to an explicitly specified control + /// on the View. + /// + /// The view type. + /// The view model type. + /// The property type. + /// The control type. + /// The parameter type. + /// A class representing the binding. Dispose it to disconnect + /// the binding. + /// The View model. + /// The View. + /// The ViewModel command to bind. + /// The name of the control on the view. + /// The ViewModel property to pass as the + /// param of the ICommand. + /// If specified, bind to the specific event + /// instead of the default. + /// NOTE: If this parameter is used inside WhenActivated, it's + /// important to dispose the binding when the view is deactivated. + public IReactiveBinding BindCommandNonGeneric( + TViewModel? viewModel, + TView view, + Expression> vmProperty, + Expression> controlProperty, + IObservable withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand + { + if (vmProperty is null) + { + throw new ArgumentNullException(nameof(vmProperty)); + } + + if (controlProperty is null) + { + throw new ArgumentNullException(nameof(controlProperty)); + } + + var vmExpression = Reflection.Rewrite(vmProperty.Body); + var controlExpression = Reflection.Rewrite(controlProperty.Body); + var source = Reflection.ViewModelWhenAnyValue(viewModel, view, vmExpression).Cast(); + + var bindingDisposable = BindCommandInternal(source, view, controlExpression, withParameter, toEvent); + + return new ReactiveBinding( + view, + controlExpression, + vmExpression, + source, + BindingDirection.OneWay, + bindingDisposable); + } + private static IDisposable BindCommandInternal( IObservable source, TView view, diff --git a/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs b/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs index 25a1e6b5d5..1ad482159f 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs @@ -46,4 +46,39 @@ public static IReactiveBinding BindCommand BindCommandNonGeneric( + this ICommandBinderImplementation @this, + TViewModel? viewModel, + TView view, + Expression> propertyName, + Expression> controlName, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand => + @this.BindCommandNonGeneric(viewModel, view, propertyName, controlName, Observable.Empty, toEvent); + + public static IReactiveBinding BindCommandNonGeneric( + this ICommandBinderImplementation @this, + TViewModel? viewModel, + TView view, + Expression> propertyName, + Expression> controlName, + Expression> withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand + { + if (withParameter is null) + { + throw new ArgumentNullException(nameof(withParameter)); + } + + var paramExpression = Reflection.Rewrite(withParameter.Body); + var param = Reflection.ViewModelWhenAnyValue(viewModel, view, paramExpression); + + return @this.BindCommandNonGeneric(viewModel, view, propertyName, controlName, param, toEvent); + } +} diff --git a/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs b/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs index 33b2fe978d..15f7cb04b8 100644 --- a/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs +++ b/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs @@ -35,42 +35,20 @@ internal class CreatesCommandBinding public static IDisposable BindCommandToObject(ICommand? command, object? target, IObservable commandParameter) { var type = target!.GetType(); - var binder = _bindCommandCache.Get(type); - if (binder is null) - { - throw new Exception($"Couldn't find a Command Binder for {type.FullName}"); - } - - var ret = binder.BindCommandToObject(command, target, commandParameter); - if (ret is null) - { - throw new Exception($"Couldn't bind Command Binder for {type.FullName}"); - } - + var binder = _bindCommandCache.Get(type) ?? throw new Exception($"Couldn't find a Command Binder for {type.FullName}"); + var ret = binder.BindCommandToObject(command, target, commandParameter) ?? throw new Exception($"Couldn't bind Command Binder for {type.FullName}"); return ret; } public static IDisposable BindCommandToObject(ICommand? command, object? target, IObservable commandParameter, string? eventName) { var type = target!.GetType(); - var binder = _bindCommandEventCache.Get(type); - if (binder is null) - { - throw new Exception($"Couldn't find an Event Binder for {type.FullName} and event {eventName}"); - } - + var binder = _bindCommandEventCache.Get(type) ?? throw new Exception($"Couldn't find an Event Binder for {type.FullName} and event {eventName}"); var eventArgsType = Reflection.GetEventArgsTypeForEvent(type, eventName); var mi = binder.GetType().GetTypeInfo().DeclaredMethods.First(x => x.Name == "BindCommandToObject" && x.IsGenericMethod); mi = mi.MakeGenericMethod(eventArgsType); - var ret = (IDisposable)mi.Invoke(binder, [command, target, commandParameter, eventName])!; - - // If we made it this far then this will not fail. - if (ret is null) - { - throw new Exception($"Couldn't bind Command Binder for {type.FullName} and event {eventName}"); - } - + var ret = (IDisposable)mi.Invoke(binder, [command, target, commandParameter, eventName])! ?? throw new Exception($"Couldn't bind Command Binder for {type.FullName} and event {eventName}"); return ret; } } diff --git a/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs b/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs index 2b853c029d..9cbe49e38d 100644 --- a/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs +++ b/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs @@ -55,14 +55,8 @@ public int GetAffinityForObject(Type type, bool hasEventTarget) var type = target.GetType(); var eventInfo = _defaultEventsToBind .Select(x => new { EventInfo = type.GetRuntimeEvent(x.name), Args = x.type }) - .FirstOrDefault(x => x.EventInfo is not null); - - if (eventInfo is null) - { - throw new Exception( + .FirstOrDefault(x => x.EventInfo is not null) ?? throw new Exception( $"Couldn't find a default event to bind to on {target.GetType().FullName}, specify an event explicitly"); - } - var mi = GetType().GetRuntimeMethods().First(x => x.Name == "BindCommandToObject" && x.IsGenericMethod); mi = mi.MakeGenericMethod(eventInfo.Args); diff --git a/src/ReactiveUI/Bindings/Command/ICommandBinderImplementation.cs b/src/ReactiveUI/Bindings/Command/ICommandBinderImplementation.cs index 650c06eeb4..d309d10688 100644 --- a/src/ReactiveUI/Bindings/Command/ICommandBinderImplementation.cs +++ b/src/ReactiveUI/Bindings/Command/ICommandBinderImplementation.cs @@ -63,4 +63,56 @@ IReactiveBinding BindCommand where TViewModel : class where TProp : ICommand; -} \ No newline at end of file + + /// + /// Binds the command on a ViewModel to a control on the View. + /// + /// The view model to bind to. + /// The view to bind to. + /// The name of the property on the View Model. + /// The name of the control on the View. + /// A function if we want to pass a parameter to the ICommand. + /// A event on the view that will also trigger the command. + /// The type of the view. + /// The type of the view model. + /// The type of the property on the view model. + /// The type of control on the view. + /// The type of the parameter to pass to the ICommand. + /// A reactive binding. Often only used for disposing the binding. + IReactiveBinding BindCommandNonGeneric( + TViewModel? viewModel, + TView view, + Expression> vmProperty, + Expression> controlProperty, + Expression> withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand; + + /// + /// Binds the command on a ViewModel to a control on the View. + /// + /// The view model to bind to. + /// The view to bind to. + /// The name of the property on the View Model. + /// The name of the control on the View. + /// A observable if we want to pass a parameter to the ICommand. + /// A event on the view that will also trigger the command. + /// The type of the view. + /// The type of the view model. + /// The type of the property on the view model. + /// The type of control on the view. + /// The type of the parameter to pass to the ICommand. + /// A reactive binding. Often only used for disposing the binding. + IReactiveBinding BindCommandNonGeneric( + TViewModel? viewModel, + TView view, + Expression> vmProperty, + Expression> controlProperty, + IObservable withParameter, + string? toEvent = null) + where TView : class, IViewFor + where TViewModel : class + where TProp : ICommand; +} From bc3f04bc64cd4e2f41454af18f49e5da2644b44d Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Wed, 22 Nov 2023 08:48:21 +0000 Subject: [PATCH 5/6] Option 2 Fix For #3644 --- ...valTests.ReactiveUI.DotNet6_0.verified.txt | 26 +--- ...valTests.ReactiveUI.DotNet7_0.verified.txt | 26 +--- ...provalTests.ReactiveUI.Net4_7.verified.txt | 26 +--- .../Bindings/Command/CommandBinder.cs | 118 +---------------- .../Command/CommandBinderImplementation.cs | 119 ------------------ .../CommandBinderImplementationMixins.cs | 39 +----- .../Command/ICommandBinderImplementation.cs | 54 +------- 7 files changed, 15 insertions(+), 393 deletions(-) diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt index 428d21b6ba..63c4473be6 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt @@ -81,26 +81,14 @@ namespace ReactiveUI public static class CommandBinder { public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } @@ -109,18 +97,10 @@ namespace ReactiveUI { public CommandBinderImplementation() { } public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt index a0cc917fca..89ea095473 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt @@ -81,26 +81,14 @@ namespace ReactiveUI public static class CommandBinder { public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } @@ -109,18 +97,10 @@ namespace ReactiveUI { public CommandBinderImplementation() { } public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt index 2e8f3eef9a..a08268e9a0 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt @@ -79,26 +79,14 @@ namespace ReactiveUI public static class CommandBinder { public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } @@ -107,18 +95,10 @@ namespace ReactiveUI { public CommandBinderImplementation() { } public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } diff --git a/src/ReactiveUI/Bindings/Command/CommandBinder.cs b/src/ReactiveUI/Bindings/Command/CommandBinder.cs index 915eb084be..9d278a66fc 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinder.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinder.cs @@ -44,39 +44,6 @@ static CommandBinder() /// NOTE: If this parameter is used inside WhenActivated, it's /// important to dispose the binding when the view is deactivated. public static IReactiveBinding BindCommand( - this TView view, - TViewModel? viewModel, - Expression> propertyName, - Expression> controlName, - IObservable withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand => - _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, withParameter, toEvent); - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// The parameter type. - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// The View. - /// The View model. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// The ViewModel property to pass as the - /// param of the ICommand. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - public static IReactiveBinding BindCommandNonGeneric( this TView view, TViewModel? viewModel, Expression> propertyName, @@ -86,7 +53,7 @@ public static IReactiveBinding BindCommandNonGeneric - _binderImplementation.BindCommandNonGeneric(viewModel, view, propertyName, controlName, withParameter, toEvent); + _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, withParameter, toEvent); /// /// Bind a command from the ViewModel to an explicitly specified control @@ -107,35 +74,6 @@ public static IReactiveBinding BindCommandNonGeneric public static IReactiveBinding BindCommand( - this TView view, - TViewModel? viewModel, - Expression> propertyName, - Expression> controlName, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand => - _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, toEvent); - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// The View. - /// The View model. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - public static IReactiveBinding BindCommandNonGeneric( this TView view, TViewModel? viewModel, Expression> propertyName, @@ -144,7 +82,7 @@ public static IReactiveBinding BindCommandNonGeneric - _binderImplementation.BindCommandNonGeneric(viewModel, view, propertyName, controlName, toEvent); + _binderImplementation.BindCommand(viewModel, view, propertyName, controlName, toEvent); /// /// Bind a command from the ViewModel to an explicitly specified control @@ -168,56 +106,6 @@ public static IReactiveBinding BindCommandNonGeneric public static IReactiveBinding BindCommand( - this TView view, - TViewModel? viewModel, - Expression> propertyName, - Expression> controlName, - Expression> withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand - { -#if NET6_0_OR_GREATER - ArgumentNullException.ThrowIfNull(view); -#else - if (view is null) - { - throw new ArgumentNullException(nameof(view)); - } -#endif - - return _binderImplementation.BindCommand( - viewModel, - view, - propertyName, - controlName, - withParameter, - toEvent); - } - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// The parameter type. - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// The View. - /// The View model. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// The ViewModel property to pass as the - /// param of the ICommand. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - public static IReactiveBinding BindCommandNonGeneric( this TView view, TViewModel? viewModel, Expression> propertyName, @@ -237,7 +125,7 @@ public static IReactiveBinding BindCommandNonGeneric public IReactiveBinding BindCommand( - TViewModel? viewModel, - TView view, - Expression> vmProperty, - Expression> controlProperty, - Expression> withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand - { - if (vmProperty is null) - { - throw new ArgumentNullException(nameof(vmProperty)); - } - - if (controlProperty is null) - { - throw new ArgumentNullException(nameof(controlProperty)); - } - - var vmExpression = Reflection.Rewrite(vmProperty.Body); - var controlExpression = Reflection.Rewrite(controlProperty.Body); - var source = Reflection.ViewModelWhenAnyValue(viewModel, view, vmExpression).Cast(); - - var bindingDisposable = BindCommandInternal(source, view, controlExpression, withParameter.ToObservable(viewModel), toEvent); - - return new ReactiveBinding( - view, - controlExpression, - vmExpression, - source, - BindingDirection.OneWay, - bindingDisposable); - } - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// The parameter type. - /// The View model. - /// The View. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// The ViewModel property to pass as the - /// param of the ICommand. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - /// - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// - /// nameof(vmProperty) - /// or - /// nameof(vmProperty). - public IReactiveBinding BindCommandNonGeneric( TViewModel? viewModel, TView view, Expression> vmProperty, @@ -158,63 +96,6 @@ public IReactiveBinding BindCommandNonGeneric public IReactiveBinding BindCommand( - TViewModel? viewModel, - TView view, - Expression> vmProperty, - Expression> controlProperty, - IObservable withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand - { - if (vmProperty is null) - { - throw new ArgumentNullException(nameof(vmProperty)); - } - - if (controlProperty is null) - { - throw new ArgumentNullException(nameof(controlProperty)); - } - - var vmExpression = Reflection.Rewrite(vmProperty.Body); - var controlExpression = Reflection.Rewrite(controlProperty.Body); - var source = Reflection.ViewModelWhenAnyValue(viewModel, view, vmExpression).Cast(); - - var bindingDisposable = BindCommandInternal(source, view, controlExpression, withParameter, toEvent); - - return new ReactiveBinding( - view, - controlExpression, - vmExpression, - source, - BindingDirection.OneWay, - bindingDisposable); - } - - /// - /// Bind a command from the ViewModel to an explicitly specified control - /// on the View. - /// - /// The view type. - /// The view model type. - /// The property type. - /// The control type. - /// The parameter type. - /// A class representing the binding. Dispose it to disconnect - /// the binding. - /// The View model. - /// The View. - /// The ViewModel command to bind. - /// The name of the control on the view. - /// The ViewModel property to pass as the - /// param of the ICommand. - /// If specified, bind to the specific event - /// instead of the default. - /// NOTE: If this parameter is used inside WhenActivated, it's - /// important to dispose the binding when the view is deactivated. - public IReactiveBinding BindCommandNonGeneric( TViewModel? viewModel, TView view, Expression> vmProperty, diff --git a/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs b/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs index 1ad482159f..5223efea68 100644 --- a/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs +++ b/src/ReactiveUI/Bindings/Command/CommandBinderImplementationMixins.cs @@ -19,47 +19,12 @@ public static IReactiveBinding BindCommand> propertyName, Expression> controlName, string? toEvent = null) - where TView : class, IViewFor + where TView : class, IViewFor where TViewModel : class where TProp : ICommand => @this.BindCommand(viewModel, view, propertyName, controlName, Observable.Empty, toEvent); public static IReactiveBinding BindCommand( - this ICommandBinderImplementation @this, - TViewModel? viewModel, - TView view, - Expression> propertyName, - Expression> controlName, - Expression> withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand - { - if (withParameter is null) - { - throw new ArgumentNullException(nameof(withParameter)); - } - - var paramExpression = Reflection.Rewrite(withParameter.Body); - var param = Reflection.ViewModelWhenAnyValue(viewModel, view, paramExpression); - - return @this.BindCommand(viewModel, view, propertyName, controlName, param, toEvent); - } - - public static IReactiveBinding BindCommandNonGeneric( - this ICommandBinderImplementation @this, - TViewModel? viewModel, - TView view, - Expression> propertyName, - Expression> controlName, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand => - @this.BindCommandNonGeneric(viewModel, view, propertyName, controlName, Observable.Empty, toEvent); - - public static IReactiveBinding BindCommandNonGeneric( this ICommandBinderImplementation @this, TViewModel? viewModel, TView view, @@ -79,6 +44,6 @@ public static IReactiveBinding BindCommandNonGenericThe type of the parameter to pass to the ICommand. /// A reactive binding. Often only used for disposing the binding. IReactiveBinding BindCommand( - TViewModel? viewModel, - TView view, - Expression> vmProperty, - Expression> controlProperty, - Expression> withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand; - - /// - /// Binds the command on a ViewModel to a control on the View. - /// - /// The view model to bind to. - /// The view to bind to. - /// The name of the property on the View Model. - /// The name of the control on the View. - /// A observable if we want to pass a parameter to the ICommand. - /// A event on the view that will also trigger the command. - /// The type of the view. - /// The type of the view model. - /// The type of the property on the view model. - /// The type of control on the view. - /// The type of the parameter to pass to the ICommand. - /// A reactive binding. Often only used for disposing the binding. - IReactiveBinding BindCommand( - TViewModel? viewModel, - TView view, - Expression> vmProperty, - Expression> controlProperty, - IObservable withParameter, - string? toEvent = null) - where TView : class, IViewFor - where TViewModel : class - where TProp : ICommand; - - /// - /// Binds the command on a ViewModel to a control on the View. - /// - /// The view model to bind to. - /// The view to bind to. - /// The name of the property on the View Model. - /// The name of the control on the View. - /// A function if we want to pass a parameter to the ICommand. - /// A event on the view that will also trigger the command. - /// The type of the view. - /// The type of the view model. - /// The type of the property on the view model. - /// The type of control on the view. - /// The type of the parameter to pass to the ICommand. - /// A reactive binding. Often only used for disposing the binding. - IReactiveBinding BindCommandNonGeneric( TViewModel? viewModel, TView view, Expression> vmProperty, @@ -105,7 +53,7 @@ IReactiveBinding BindCommandNonGenericThe type of control on the view. /// The type of the parameter to pass to the ICommand. /// A reactive binding. Often only used for disposing the binding. - IReactiveBinding BindCommandNonGeneric( + IReactiveBinding BindCommand( TViewModel? viewModel, TView view, Expression> vmProperty, From 4c30218da4f5b7e6917c4ddf66936386a4c6d52c Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Wed, 22 Nov 2023 21:42:50 +0000 Subject: [PATCH 6/6] Remove incorrectly generated files --- ...valTests.ReactiveUI.DotNet6_0.verified.txt | 20 - ...valTests.ReactiveUI.DotNet7_0.verified.txt | 20 - ...valTests.ReactiveUI.DotNet8_0.verified.txt | 26 +- ...provalTests.ReactiveUI.Net4_7.verified.txt | 20 - ...valTests.ReactiveUI.DotNet6_0.verified.txt | 1049 ---------------- ...valTests.ReactiveUI.DotNet7_0.verified.txt | 1049 ---------------- ...provalTests.ReactiveUI.Net4_7.verified.txt | 1054 ----------------- ...provalTests.Testing.DotNet6_0.verified.txt | 55 - ...provalTests.Testing.DotNet7_0.verified.txt | 55 - ...iApprovalTests.Testing.Net4_7.verified.txt | 55 - ...rovalTests.Winforms.DotNet6_0.verified.txt | 116 -- ...rovalTests.Winforms.DotNet7_0.verified.txt | 116 -- ...rovalTests.Winforms.DotNet8_0.verified.txt | 116 -- ...ApprovalTests.Winforms.Net4_7.verified.txt | 114 -- ...piApprovalTests.Wpf.DotNet6_0.verified.txt | 139 --- ...piApprovalTests.Wpf.DotNet7_0.verified.txt | 139 --- ...piApprovalTests.Wpf.DotNet8_0.verified.txt | 139 --- ...pfApiApprovalTests.Wpf.Net4_7.verified.txt | 137 --- ...ApiApprovalTests.Blend.Net4_7.verified.txt | 23 - 19 files changed, 3 insertions(+), 4439 deletions(-) delete mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet6_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet7_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.Net4_7.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet6_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet7_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet8_0.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.Net4_7.verified.txt delete mode 100644 src/ReactiveUI.Tests/Utilities/XamlApiApprovalTests.Blend.Net4_7.verified.txt diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt index da2e3703ad..63c4473be6 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt @@ -92,18 +92,6 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -116,14 +104,6 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt index f4178af29a..89ea095473 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt @@ -92,18 +92,6 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -116,14 +104,6 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt index 88019adb36..3f36840f15 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt @@ -81,26 +81,14 @@ namespace ReactiveUI public static class CommandBinder { public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } @@ -109,18 +97,10 @@ namespace ReactiveUI { public CommandBinderImplementation() { } public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) + public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt index 4da0b1a9a2..a08268e9a0 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt @@ -90,18 +90,6 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommandNonGeneric(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } } public class CommandBinderImplementation : Splat.IEnableLogger { @@ -114,14 +102,6 @@ namespace ReactiveUI where TView : class, ReactiveUI.IViewFor where TViewModel : class where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommandNonGeneric(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } } public static class ComparerChainingExtensions { diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt deleted file mode 100644 index 63c4473be6..0000000000 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet6_0.verified.txt +++ /dev/null @@ -1,1049 +0,0 @@ -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidX")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Blazor")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Drawing")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Maui")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.TestRunner.Android")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno.WinUI")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uwp")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.WinUI")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] -[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] -[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] -namespace ReactiveUI -{ - public static class AutoPersistHelper - { - public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ObservableCollection @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this System.IObservable> @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this TCollection collection, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject - where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } - public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.TimeSpan? interval = default) - where T : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where T : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this TCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject - where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } - } - public enum BindingDirection - { - OneWay = 0, - TwoWay = 1, - AsyncOneWay = 2, - } - public class ByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ByteToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class CanActivateViewFetcher : ReactiveUI.IActivationForViewFetcher - { - public CanActivateViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public static class ChangeSetMixin - { - public static System.IObservable CountChanged(this System.IObservable changeSet) { } - public static System.IObservable> CountChanged(this System.IObservable> changeSet) - where T : notnull { } - public static bool HasCountChanged(this DynamicData.IChangeSet changeSet) { } - } - public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> - { - protected CombinedReactiveCommand(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public override System.IObservable CanExecute { get; } - public override System.IObservable IsExecuting { get; } - public override System.IObservable ThrownExceptions { get; } - protected override void Dispose(bool disposing) { } - public override System.IObservable> Execute() { } - public override System.IObservable> Execute(TParam parameter) { } - public override System.IDisposable Subscribe(System.IObserver> observer) { } - } - public static class CommandBinder - { - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - } - public class CommandBinderImplementation : Splat.IEnableLogger - { - public CommandBinderImplementation() { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - } - public static class ComparerChainingExtensions - { - public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector) { } - public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } - public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector) { } - public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } - } - public class ComponentModelTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ComponentModelTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - } - public class CreatesCommandBindingViaCommandParameter : ReactiveUI.ICreatesCommandBinding - { - public CreatesCommandBindingViaCommandParameter() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding - { - public CreatesCommandBindingViaEvent() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public DecimalToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public sealed class DefaultViewLocator : ReactiveUI.IViewLocator, Splat.IEnableLogger - { - public System.Func ViewModelToViewFunc { get; set; } - public ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null) { } - } - public static class DependencyResolverMixins - { - public static void InitializeReactiveUI(this Splat.IMutableDependencyResolver resolver, params ReactiveUI.RegistrationNamespace[] registrationNamespaces) { } - public static void RegisterViewsForViewModels(this Splat.IMutableDependencyResolver resolver, System.Reflection.Assembly assembly) { } - } - public class DoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public DoubleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class DummySuspensionDriver : ReactiveUI.ISuspensionDriver - { - public DummySuspensionDriver() { } - public System.IObservable InvalidateState() { } - public System.IObservable LoadState() { } - public System.IObservable SaveState(object state) { } - } - public class EqualityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public EqualityTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - public static object? DoReferenceCast(object? from, System.Type targetType) { } - } - public static class ExpressionMixins - { - public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } - public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } - public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } - public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } - } - public interface IActivatableView { } - public interface IActivatableViewModel - { - ReactiveUI.ViewModelActivator Activator { get; } - } - public interface IActivationForViewFetcher - { - System.IObservable GetActivationForView(ReactiveUI.IActivatableView view); - int GetAffinityForView(System.Type view); - } - public interface IBindingTypeConverter : Splat.IEnableLogger - { - int GetAffinityForObjects(System.Type fromType, System.Type toType); - bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result); - } - public interface ICanActivate - { - System.IObservable Activated { get; } - System.IObservable Deactivated { get; } - } - public interface IComparerBuilder - { - System.Collections.Generic.IComparer OrderBy(System.Func selector); - System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer); - System.Collections.Generic.IComparer OrderByDescending(System.Func selector); - System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer); - } - public interface ICreatesCommandBinding - { - System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter); - System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); - int GetAffinityForObject(System.Type type, bool hasEventTarget); - } - public interface ICreatesObservableForProperty : Splat.IEnableLogger - { - int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); - System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); - } - public interface IHandleObservableErrors - { - System.IObservable ThrownExceptions { get; } - } - public interface IInteractionBinderImplementation : Splat.IEnableLogger - { - System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - } - public interface IInteractionContext - { - TInput Input { get; } - bool IsHandled { get; } - void SetOutput(TOutput output); - } - public interface IInteraction - { - System.IObservable Handle(TInput input); - System.IDisposable RegisterHandler(System.Action> handler); - System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler); - System.IDisposable RegisterHandler(System.Func, System.IObservable> handler); - } - public interface IMessageBus : Splat.IEnableLogger - { - bool IsRegistered(System.Type type, string? contract = null); - System.IObservable Listen(string? contract = null); - System.IObservable ListenIncludeLatest(string? contract = null); - System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null); - void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null); - void SendMessage(T message, string? contract = null); - } - public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public INPCObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public interface IObservedChange - { - System.Linq.Expressions.Expression? Expression { get; } - TSender Sender { get; } - TValue Value { get; } - } - public interface IOutputContext : ReactiveUI.IInteractionContext - { - TOutput GetOutput(); - } - public interface IPlatformOperations - { - string? GetOrientation(); - } - public interface IPropertyBinderImplementation : Splat.IEnableLogger - { - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class; - ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - } - public interface IPropertyBindingHook - { - bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction); - } - public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public IROObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public interface IReactiveBinding : System.IDisposable - where out TView : ReactiveUI.IViewFor - { - System.IObservable Changed { get; } - ReactiveUI.BindingDirection Direction { get; } - TView View { get; } - System.Linq.Expressions.Expression ViewExpression { get; } - System.Linq.Expressions.Expression ViewModelExpression { get; } - } - public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, System.IDisposable - { - System.IObservable CanExecute { get; } - System.IObservable IsExecuting { get; } - } - public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable - { - System.IObservable Execute(); - System.IObservable Execute(TParam parameter); - } - public interface IReactiveNotifyPropertyChanged - { - System.IObservable> Changed { get; } - System.IObservable> Changing { get; } - System.IDisposable SuppressChangeNotifications(); - } - public interface IReactiveObject : Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - void RaisePropertyChanged(System.ComponentModel.PropertyChangedEventArgs args); - void RaisePropertyChanging(System.ComponentModel.PropertyChangingEventArgs args); - } - public static class IReactiveObjectExtensions - { - public static TRet RaiseAndSetIfChanged(this TObj reactiveObject, ref TRet backingField, TRet newValue, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TObj : ReactiveUI.IReactiveObject { } - public static void RaisePropertyChanged(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TSender : ReactiveUI.IReactiveObject { } - public static void RaisePropertyChanging(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TSender : ReactiveUI.IReactiveObject { } - public static void SubscribePropertyChangedEvents(this TSender reactiveObject) - where TSender : ReactiveUI.IReactiveObject { } - public static void SubscribePropertyChangingEvents(this TSender reactiveObject) - where TSender : ReactiveUI.IReactiveObject { } - } - public interface IReactivePropertyChangedEventArgs - { - string? PropertyName { get; } - TSender Sender { get; } - } - public interface IRoutableViewModel : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - ReactiveUI.IScreen HostScreen { get; } - string? UrlPathSegment { get; } - } - public interface IScreen - { - ReactiveUI.RoutingState Router { get; } - } - public interface ISetMethodBindingConverter : Splat.IEnableLogger - { - int GetAffinityForObjects(System.Type? fromType, System.Type? toType); - object? PerformSet(object? toTarget, object? newValue, object?[]? arguments); - } - public interface ISuspensionDriver - { - System.IObservable InvalidateState(); - System.IObservable LoadState(); - System.IObservable SaveState(object state); - } - public interface ISuspensionHost : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - object? AppState { get; set; } - System.Func? CreateNewAppState { get; set; } - System.IObservable IsLaunchingNew { get; set; } - System.IObservable IsResuming { get; set; } - System.IObservable IsUnpausing { get; set; } - System.IObservable ShouldInvalidateState { get; set; } - System.IObservable ShouldPersistState { get; set; } - } - public interface IViewFor : ReactiveUI.IActivatableView - { - object? ViewModel { get; set; } - } - public interface IViewFor : ReactiveUI.IActivatableView, ReactiveUI.IViewFor - where T : class - { - T ViewModel { get; set; } - } - public interface IViewLocator : Splat.IEnableLogger - { - ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null); - } - public class IntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public IntegerToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class InteractionBinderImplementation : ReactiveUI.IInteractionBinderImplementation, Splat.IEnableLogger - { - public InteractionBinderImplementation() { } - public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class InteractionBindingMixins - { - public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public sealed class InteractionContext : ReactiveUI.IInteractionContext, ReactiveUI.IOutputContext - { - public TInput Input { get; } - public bool IsHandled { get; } - public TOutput GetOutput() { } - public void SetOutput(TOutput output) { } - } - public class Interaction : ReactiveUI.IInteraction - { - public Interaction(System.Reactive.Concurrency.IScheduler? handlerScheduler = null) { } - protected virtual ReactiveUI.IOutputContext GenerateContext(TInput input) { } - protected System.Func, System.IObservable>[] GetHandlers() { } - public virtual System.IObservable Handle(TInput input) { } - public System.IDisposable RegisterHandler(System.Action> handler) { } - public System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler) { } - public System.IDisposable RegisterHandler(System.Func, System.IObservable> handler) { } - } - public class LongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public LongToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class MessageBus : ReactiveUI.IMessageBus, Splat.IEnableLogger - { - public MessageBus() { } - public static ReactiveUI.IMessageBus Current { get; set; } - public bool IsRegistered(System.Type type, string? contract = null) { } - public System.IObservable Listen(string? contract = null) { } - public System.IObservable ListenIncludeLatest(string? contract = null) { } - public System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null) { } - public void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null) { } - public void SendMessage(T message, string? contract = null) { } - } - public class NullableByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableByteToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableDecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableDecimalToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableDoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableDoubleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableIntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableIntegerToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableLongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableLongToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableShortToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableSingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableSingleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public static class OAPHCreationHelperMixin - { - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - } - public sealed class ObservableAsPropertyHelper : ReactiveUI.IHandleObservableErrors, Splat.IEnableLogger, System.IDisposable - { - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, System.Func? getInitialValue = null, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public bool IsSubscribed { get; } - public System.IObservable ThrownExceptions { get; } - public T Value { get; } - public void Dispose() { } - public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - } - public static class ObservableFuncMixins - { - public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } - } - public static class ObservableLoggingMixin - { - public static System.IObservable Log(this System.IObservable @this, TObj logObject, string? message = null, System.Func? stringifier = null) - where TObj : Splat.IEnableLogger { } - public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.IObservable? next = null, string? message = null) - where TObj : Splat.IEnableLogger { } - public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.Func> next, string? message = null) - where TObj : Splat.IEnableLogger - where TException : System.Exception { } - } - public static class ObservableMixins - { - public static System.IObservable WhereNotNull(this System.IObservable observable) { } - } - public class ObservedChange : ReactiveUI.IObservedChange - { - public ObservedChange(TSender sender, System.Linq.Expressions.Expression? expression, TValue value) { } - public System.Linq.Expressions.Expression? Expression { get; } - public TSender Sender { get; } - public TValue Value { get; } - } - public static class ObservedChangedMixin - { - public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } - public static TValue GetValue(this ReactiveUI.IObservedChange item) { } - public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } - public static System.IObservable Value(this System.IObservable> item) { } - } - public static class OrderedComparer - { - public static ReactiveUI.IComparerBuilder For() { } - public static ReactiveUI.IComparerBuilder For(System.Collections.Generic.IEnumerable enumerable) { } - } - public static class OrderedComparer - { - public static System.Collections.Generic.IComparer OrderBy(System.Func selector) { } - public static System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer) { } - public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector) { } - public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer) { } - } - public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public POCOObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public static class PlatformRegistrationManager - { - public static void SetRegistrationNamespaces(params ReactiveUI.RegistrationNamespace[] namespaces) { } - } - public class PlatformRegistrations - { - public PlatformRegistrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - public class PropertyBinderImplementation : ReactiveUI.IPropertyBinderImplementation, Splat.IEnableLogger - { - public PropertyBinderImplementation() { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class { } - public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class PropertyBindingMixins - { - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func vmToViewConverter, System.Func viewToVmConverter) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static System.IDisposable BindTo(this System.IObservable @this, TTarget? target, System.Linq.Expressions.Expression> property, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class { } - public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class ReactiveCommand - { - public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - } - public abstract class ReactiveCommandBase : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable, System.Windows.Input.ICommand - { - protected ReactiveCommandBase() { } - public abstract System.IObservable CanExecute { get; } - public abstract System.IObservable IsExecuting { get; } - public abstract System.IObservable ThrownExceptions { get; } - public void Dispose() { } - protected abstract void Dispose(bool disposing); - public abstract System.IObservable Execute(); - public abstract System.IObservable Execute(TParam parameter); - protected virtual bool ICommandCanExecute(object? parameter) { } - protected virtual void ICommandExecute(object? parameter) { } - protected void OnCanExecuteChanged(bool newValue) { } - public abstract System.IDisposable Subscribe(System.IObserver observer); - } - public static class ReactiveCommandMixins - { - public static System.IDisposable InvokeCommand(this System.IObservable item, System.Windows.Input.ICommand? command) { } - public static System.IDisposable InvokeCommand(this System.IObservable item, ReactiveUI.ReactiveCommandBase? command) { } - public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) - where TTarget : class { } - public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) - where TTarget : class { } - } - public class ReactiveCommand : ReactiveUI.ReactiveCommandBase - { - protected ReactiveCommand(System.Func> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler) { } - public override System.IObservable CanExecute { get; } - public override System.IObservable IsExecuting { get; } - public override System.IObservable ThrownExceptions { get; } - protected override void Dispose(bool disposing) { } - public override System.IObservable Execute() { } - public override System.IObservable Execute(TParam parameter) { } - public override System.IDisposable Subscribe(System.IObserver observer) { } - } - public static class ReactiveNotifyPropertyChangedMixin - { - public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange = false, bool skipInitial = true) { } - public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange = false) - where TSender : class { } - public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange = false, bool skipInitial = true, bool suppressWarnings = false) { } - } - [System.Runtime.Serialization.DataContract] - public class ReactiveObject : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public ReactiveObject() { } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changed { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changing { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable ThrownExceptions { get; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - public bool AreChangeNotificationsEnabled() { } - public System.IDisposable DelayChangeNotifications() { } - public System.IDisposable SuppressChangeNotifications() { } - } - public class ReactivePropertyChangedEventArgs : System.ComponentModel.PropertyChangedEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs - { - public ReactivePropertyChangedEventArgs(TSender sender, string propertyName) { } - public TSender Sender { get; } - } - public class ReactivePropertyChangingEventArgs : System.ComponentModel.PropertyChangingEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs - { - public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { } - public TSender Sender { get; } - } - [System.Runtime.Serialization.DataContract] - public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable - { - public ReactiveRecord() { } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changed { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changing { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable ThrownExceptions { get; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - public bool AreChangeNotificationsEnabled() { } - public System.IDisposable DelayChangeNotifications() { } - public System.IDisposable SuppressChangeNotifications() { } - } - public static class Reflection - { - public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } - public static System.Type GetEventArgsTypeForEvent(System.Type type, string? eventName) { } - public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } - public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } - public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } - public static System.Action? GetValueSetterOrThrow(System.Reflection.MemberInfo? member) { } - public static bool IsStatic(this System.Reflection.PropertyInfo item) { } - public static System.Type? ReallyFindType(string? type, bool throwOnFailure) { } - public static System.Linq.Expressions.Expression Rewrite(System.Linq.Expressions.Expression? expression) { } - public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } - public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } - } - public enum RegistrationNamespace - { - None = 0, - XamForms = 1, - Winforms = 2, - Wpf = 3, - Uno = 4, - UnoWinUI = 5, - Blazor = 6, - Drawing = 7, - Avalonia = 8, - Maui = 9, - Uwp = 10, - WinUI = 11, - } - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - public static class RoutableViewModelMixin - { - public static System.IDisposable WhenNavigatedTo(this ReactiveUI.IRoutableViewModel item, System.Func onNavigatedTo) { } - public static System.IObservable WhenNavigatedToObservable(this ReactiveUI.IRoutableViewModel item) { } - public static System.IObservable WhenNavigatingFromObservable(this ReactiveUI.IRoutableViewModel item) { } - } - [System.Runtime.Serialization.DataContract] - public class RoutingState : ReactiveUI.ReactiveObject - { - public RoutingState(System.Reactive.Concurrency.IScheduler? scheduler = null) { } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable CurrentViewModel { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public ReactiveUI.ReactiveCommand Navigate { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public ReactiveUI.ReactiveCommand NavigateAndReset { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public ReactiveUI.ReactiveCommand NavigateBack { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> NavigationChanged { get; set; } - [System.Runtime.Serialization.DataMember] - [System.Text.Json.Serialization.JsonRequired] - public System.Collections.ObjectModel.ObservableCollection NavigationStack { get; set; } - } - public static class RoutingStateMixins - { - public static T? FindViewModelInStack(this ReactiveUI.RoutingState item) - where T : ReactiveUI.IRoutableViewModel { } - public static ReactiveUI.IRoutableViewModel? GetCurrentViewModel(this ReactiveUI.RoutingState item) { } - } - public static class RxApp - { - public const int BigCacheLimit = 256; - public const int SmallCacheLimit = 64; - public static System.IObserver DefaultExceptionHandler { get; set; } - public static System.Reactive.Concurrency.IScheduler MainThreadScheduler { get; set; } - public static bool SuppressViewCommandBindingMessage { get; set; } - public static ReactiveUI.ISuspensionHost SuspensionHost { get; set; } - public static System.Reactive.Concurrency.IScheduler TaskpoolScheduler { get; set; } - } - public class ScheduledSubject : System.IDisposable, System.IObservable, System.IObserver, System.Reactive.Subjects.ISubject, System.Reactive.Subjects.ISubject - { - public ScheduledSubject(System.Reactive.Concurrency.IScheduler scheduler, System.IObserver? defaultObserver = null, System.Reactive.Subjects.ISubject? defaultSubject = null) { } - public void Dispose() { } - protected virtual void Dispose(bool isDisposing) { } - public void OnCompleted() { } - public void OnError(System.Exception error) { } - public void OnNext(T value) { } - public System.IDisposable Subscribe(System.IObserver observer) { } - } - public class ShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ShortToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - [System.AttributeUsage(System.AttributeTargets.Class)] - public sealed class SingleInstanceViewAttribute : System.Attribute - { - public SingleInstanceViewAttribute() { } - } - public class SingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public SingleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class StringConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public StringConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - } - public static class SuspensionHostExtensions - { - public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } - public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) - where T : class { } - public static System.IDisposable SetupDefaultSuspendResume(this ReactiveUI.ISuspensionHost item, ReactiveUI.ISuspensionDriver? driver = null) { } - } - public enum TriggerUpdate - { - ViewToViewModel = 0, - ViewModelToView = 1, - } - [System.Serializable] - public class UnhandledErrorException : System.Exception - { - public UnhandledErrorException() { } - public UnhandledErrorException(string message) { } - protected UnhandledErrorException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } - public UnhandledErrorException(string message, System.Exception innerException) { } - } - [System.Serializable] - public class UnhandledInteractionException : System.Exception - { - public UnhandledInteractionException() { } - public UnhandledInteractionException(string message) { } - public UnhandledInteractionException(ReactiveUI.Interaction interaction, TInput input) { } - protected UnhandledInteractionException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } - public UnhandledInteractionException(string message, System.Exception innerException) { } - public TInput Input { get; } - public ReactiveUI.Interaction? Interaction { get; } - public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - [System.AttributeUsage(System.AttributeTargets.Class)] - public sealed class ViewContractAttribute : System.Attribute - { - public ViewContractAttribute(string contract) { } - public string Contract { get; } - } - public static class ViewForMixins - { - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action> block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Func> block) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block, ReactiveUI.IViewFor view) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action block, ReactiveUI.IViewFor? view = null) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block, ReactiveUI.IViewFor? view) { } - } - public static class ViewLocator - { - public static ReactiveUI.IViewLocator Current { get; } - } - [System.Serializable] - public class ViewLocatorNotFoundException : System.Exception - { - public ViewLocatorNotFoundException() { } - public ViewLocatorNotFoundException(string message) { } - protected ViewLocatorNotFoundException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } - public ViewLocatorNotFoundException(string message, System.Exception innerException) { } - } - public sealed class ViewModelActivator : System.IDisposable - { - public ViewModelActivator() { } - public System.IObservable Activated { get; } - public System.IObservable Deactivated { get; } - public System.IDisposable Activate() { } - public void Deactivate(bool ignoreRefCount = false) { } - public void Dispose() { } - } - public class WaitForDispatcherScheduler : System.Reactive.Concurrency.IScheduler - { - public WaitForDispatcherScheduler(System.Func schedulerFactory) { } - public System.DateTimeOffset Now { get; } - public System.IDisposable Schedule(TState state, System.Func action) { } - public System.IDisposable Schedule(TState state, System.DateTimeOffset dueTime, System.Func action) { } - public System.IDisposable Schedule(TState state, System.TimeSpan dueTime, System.Func action) { } - } - public static class WhenAnyMixin - { - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Linq.Expressions.Expression? property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func selector) { } - } - public static class WhenAnyObservableMixin - { - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12, System.Func selector) - where TSender : class { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt deleted file mode 100644 index 89ea095473..0000000000 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.DotNet7_0.verified.txt +++ /dev/null @@ -1,1049 +0,0 @@ -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidX")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Blazor")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Drawing")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Maui")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.TestRunner.Android")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno.WinUI")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uwp")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.WinUI")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] -[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName=".NET 7.0")] -[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] -namespace ReactiveUI -{ - public static class AutoPersistHelper - { - public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ObservableCollection @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this System.IObservable> @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this TCollection collection, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject - where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } - public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.TimeSpan? interval = default) - where T : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where T : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this TCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject - where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } - } - public enum BindingDirection - { - OneWay = 0, - TwoWay = 1, - AsyncOneWay = 2, - } - public class ByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ByteToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class CanActivateViewFetcher : ReactiveUI.IActivationForViewFetcher - { - public CanActivateViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public static class ChangeSetMixin - { - public static System.IObservable CountChanged(this System.IObservable changeSet) { } - public static System.IObservable> CountChanged(this System.IObservable> changeSet) - where T : notnull { } - public static bool HasCountChanged(this DynamicData.IChangeSet changeSet) { } - } - public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> - { - protected CombinedReactiveCommand(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public override System.IObservable CanExecute { get; } - public override System.IObservable IsExecuting { get; } - public override System.IObservable ThrownExceptions { get; } - protected override void Dispose(bool disposing) { } - public override System.IObservable> Execute() { } - public override System.IObservable> Execute(TParam parameter) { } - public override System.IDisposable Subscribe(System.IObserver> observer) { } - } - public static class CommandBinder - { - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - } - public class CommandBinderImplementation : Splat.IEnableLogger - { - public CommandBinderImplementation() { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - } - public static class ComparerChainingExtensions - { - public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector) { } - public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } - public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector) { } - public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } - } - public class ComponentModelTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ComponentModelTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - } - public class CreatesCommandBindingViaCommandParameter : ReactiveUI.ICreatesCommandBinding - { - public CreatesCommandBindingViaCommandParameter() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding - { - public CreatesCommandBindingViaEvent() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public DecimalToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public sealed class DefaultViewLocator : ReactiveUI.IViewLocator, Splat.IEnableLogger - { - public System.Func ViewModelToViewFunc { get; set; } - public ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null) { } - } - public static class DependencyResolverMixins - { - public static void InitializeReactiveUI(this Splat.IMutableDependencyResolver resolver, params ReactiveUI.RegistrationNamespace[] registrationNamespaces) { } - public static void RegisterViewsForViewModels(this Splat.IMutableDependencyResolver resolver, System.Reflection.Assembly assembly) { } - } - public class DoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public DoubleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class DummySuspensionDriver : ReactiveUI.ISuspensionDriver - { - public DummySuspensionDriver() { } - public System.IObservable InvalidateState() { } - public System.IObservable LoadState() { } - public System.IObservable SaveState(object state) { } - } - public class EqualityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public EqualityTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - public static object? DoReferenceCast(object? from, System.Type targetType) { } - } - public static class ExpressionMixins - { - public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } - public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } - public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } - public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } - } - public interface IActivatableView { } - public interface IActivatableViewModel - { - ReactiveUI.ViewModelActivator Activator { get; } - } - public interface IActivationForViewFetcher - { - System.IObservable GetActivationForView(ReactiveUI.IActivatableView view); - int GetAffinityForView(System.Type view); - } - public interface IBindingTypeConverter : Splat.IEnableLogger - { - int GetAffinityForObjects(System.Type fromType, System.Type toType); - bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result); - } - public interface ICanActivate - { - System.IObservable Activated { get; } - System.IObservable Deactivated { get; } - } - public interface IComparerBuilder - { - System.Collections.Generic.IComparer OrderBy(System.Func selector); - System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer); - System.Collections.Generic.IComparer OrderByDescending(System.Func selector); - System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer); - } - public interface ICreatesCommandBinding - { - System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter); - System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); - int GetAffinityForObject(System.Type type, bool hasEventTarget); - } - public interface ICreatesObservableForProperty : Splat.IEnableLogger - { - int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); - System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); - } - public interface IHandleObservableErrors - { - System.IObservable ThrownExceptions { get; } - } - public interface IInteractionBinderImplementation : Splat.IEnableLogger - { - System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - } - public interface IInteractionContext - { - TInput Input { get; } - bool IsHandled { get; } - void SetOutput(TOutput output); - } - public interface IInteraction - { - System.IObservable Handle(TInput input); - System.IDisposable RegisterHandler(System.Action> handler); - System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler); - System.IDisposable RegisterHandler(System.Func, System.IObservable> handler); - } - public interface IMessageBus : Splat.IEnableLogger - { - bool IsRegistered(System.Type type, string? contract = null); - System.IObservable Listen(string? contract = null); - System.IObservable ListenIncludeLatest(string? contract = null); - System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null); - void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null); - void SendMessage(T message, string? contract = null); - } - public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public INPCObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public interface IObservedChange - { - System.Linq.Expressions.Expression? Expression { get; } - TSender Sender { get; } - TValue Value { get; } - } - public interface IOutputContext : ReactiveUI.IInteractionContext - { - TOutput GetOutput(); - } - public interface IPlatformOperations - { - string? GetOrientation(); - } - public interface IPropertyBinderImplementation : Splat.IEnableLogger - { - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class; - ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor; - } - public interface IPropertyBindingHook - { - bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction); - } - public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public IROObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public interface IReactiveBinding : System.IDisposable - where out TView : ReactiveUI.IViewFor - { - System.IObservable Changed { get; } - ReactiveUI.BindingDirection Direction { get; } - TView View { get; } - System.Linq.Expressions.Expression ViewExpression { get; } - System.Linq.Expressions.Expression ViewModelExpression { get; } - } - public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, System.IDisposable - { - System.IObservable CanExecute { get; } - System.IObservable IsExecuting { get; } - } - public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable - { - System.IObservable Execute(); - System.IObservable Execute(TParam parameter); - } - public interface IReactiveNotifyPropertyChanged - { - System.IObservable> Changed { get; } - System.IObservable> Changing { get; } - System.IDisposable SuppressChangeNotifications(); - } - public interface IReactiveObject : Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - void RaisePropertyChanged(System.ComponentModel.PropertyChangedEventArgs args); - void RaisePropertyChanging(System.ComponentModel.PropertyChangingEventArgs args); - } - public static class IReactiveObjectExtensions - { - public static TRet RaiseAndSetIfChanged(this TObj reactiveObject, ref TRet backingField, TRet newValue, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TObj : ReactiveUI.IReactiveObject { } - public static void RaisePropertyChanged(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TSender : ReactiveUI.IReactiveObject { } - public static void RaisePropertyChanging(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TSender : ReactiveUI.IReactiveObject { } - public static void SubscribePropertyChangedEvents(this TSender reactiveObject) - where TSender : ReactiveUI.IReactiveObject { } - public static void SubscribePropertyChangingEvents(this TSender reactiveObject) - where TSender : ReactiveUI.IReactiveObject { } - } - public interface IReactivePropertyChangedEventArgs - { - string? PropertyName { get; } - TSender Sender { get; } - } - public interface IRoutableViewModel : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - ReactiveUI.IScreen HostScreen { get; } - string? UrlPathSegment { get; } - } - public interface IScreen - { - ReactiveUI.RoutingState Router { get; } - } - public interface ISetMethodBindingConverter : Splat.IEnableLogger - { - int GetAffinityForObjects(System.Type? fromType, System.Type? toType); - object? PerformSet(object? toTarget, object? newValue, object?[]? arguments); - } - public interface ISuspensionDriver - { - System.IObservable InvalidateState(); - System.IObservable LoadState(); - System.IObservable SaveState(object state); - } - public interface ISuspensionHost : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - object? AppState { get; set; } - System.Func? CreateNewAppState { get; set; } - System.IObservable IsLaunchingNew { get; set; } - System.IObservable IsResuming { get; set; } - System.IObservable IsUnpausing { get; set; } - System.IObservable ShouldInvalidateState { get; set; } - System.IObservable ShouldPersistState { get; set; } - } - public interface IViewFor : ReactiveUI.IActivatableView - { - object? ViewModel { get; set; } - } - public interface IViewFor : ReactiveUI.IActivatableView, ReactiveUI.IViewFor - where T : class - { - T ViewModel { get; set; } - } - public interface IViewLocator : Splat.IEnableLogger - { - ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null); - } - public class IntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public IntegerToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class InteractionBinderImplementation : ReactiveUI.IInteractionBinderImplementation, Splat.IEnableLogger - { - public InteractionBinderImplementation() { } - public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class InteractionBindingMixins - { - public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public sealed class InteractionContext : ReactiveUI.IInteractionContext, ReactiveUI.IOutputContext - { - public TInput Input { get; } - public bool IsHandled { get; } - public TOutput GetOutput() { } - public void SetOutput(TOutput output) { } - } - public class Interaction : ReactiveUI.IInteraction - { - public Interaction(System.Reactive.Concurrency.IScheduler? handlerScheduler = null) { } - protected virtual ReactiveUI.IOutputContext GenerateContext(TInput input) { } - protected System.Func, System.IObservable>[] GetHandlers() { } - public virtual System.IObservable Handle(TInput input) { } - public System.IDisposable RegisterHandler(System.Action> handler) { } - public System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler) { } - public System.IDisposable RegisterHandler(System.Func, System.IObservable> handler) { } - } - public class LongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public LongToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class MessageBus : ReactiveUI.IMessageBus, Splat.IEnableLogger - { - public MessageBus() { } - public static ReactiveUI.IMessageBus Current { get; set; } - public bool IsRegistered(System.Type type, string? contract = null) { } - public System.IObservable Listen(string? contract = null) { } - public System.IObservable ListenIncludeLatest(string? contract = null) { } - public System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null) { } - public void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null) { } - public void SendMessage(T message, string? contract = null) { } - } - public class NullableByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableByteToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableDecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableDecimalToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableDoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableDoubleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableIntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableIntegerToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableLongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableLongToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableShortToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableSingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableSingleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public static class OAPHCreationHelperMixin - { - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - } - public sealed class ObservableAsPropertyHelper : ReactiveUI.IHandleObservableErrors, Splat.IEnableLogger, System.IDisposable - { - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, System.Func? getInitialValue = null, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public bool IsSubscribed { get; } - public System.IObservable ThrownExceptions { get; } - public T Value { get; } - public void Dispose() { } - public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - } - public static class ObservableFuncMixins - { - public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } - } - public static class ObservableLoggingMixin - { - public static System.IObservable Log(this System.IObservable @this, TObj logObject, string? message = null, System.Func? stringifier = null) - where TObj : Splat.IEnableLogger { } - public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.IObservable? next = null, string? message = null) - where TObj : Splat.IEnableLogger { } - public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.Func> next, string? message = null) - where TObj : Splat.IEnableLogger - where TException : System.Exception { } - } - public static class ObservableMixins - { - public static System.IObservable WhereNotNull(this System.IObservable observable) { } - } - public class ObservedChange : ReactiveUI.IObservedChange - { - public ObservedChange(TSender sender, System.Linq.Expressions.Expression? expression, TValue value) { } - public System.Linq.Expressions.Expression? Expression { get; } - public TSender Sender { get; } - public TValue Value { get; } - } - public static class ObservedChangedMixin - { - public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } - public static TValue GetValue(this ReactiveUI.IObservedChange item) { } - public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } - public static System.IObservable Value(this System.IObservable> item) { } - } - public static class OrderedComparer - { - public static ReactiveUI.IComparerBuilder For() { } - public static ReactiveUI.IComparerBuilder For(System.Collections.Generic.IEnumerable enumerable) { } - } - public static class OrderedComparer - { - public static System.Collections.Generic.IComparer OrderBy(System.Func selector) { } - public static System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer) { } - public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector) { } - public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer) { } - } - public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public POCOObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public static class PlatformRegistrationManager - { - public static void SetRegistrationNamespaces(params ReactiveUI.RegistrationNamespace[] namespaces) { } - } - public class PlatformRegistrations - { - public PlatformRegistrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - public class PropertyBinderImplementation : ReactiveUI.IPropertyBinderImplementation, Splat.IEnableLogger - { - public PropertyBinderImplementation() { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class { } - public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class PropertyBindingMixins - { - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func vmToViewConverter, System.Func viewToVmConverter) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static System.IDisposable BindTo(this System.IObservable @this, TTarget? target, System.Linq.Expressions.Expression> property, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class { } - public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class ReactiveCommand - { - public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - } - public abstract class ReactiveCommandBase : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable, System.Windows.Input.ICommand - { - protected ReactiveCommandBase() { } - public abstract System.IObservable CanExecute { get; } - public abstract System.IObservable IsExecuting { get; } - public abstract System.IObservable ThrownExceptions { get; } - public void Dispose() { } - protected abstract void Dispose(bool disposing); - public abstract System.IObservable Execute(); - public abstract System.IObservable Execute(TParam parameter); - protected virtual bool ICommandCanExecute(object? parameter) { } - protected virtual void ICommandExecute(object? parameter) { } - protected void OnCanExecuteChanged(bool newValue) { } - public abstract System.IDisposable Subscribe(System.IObserver observer); - } - public static class ReactiveCommandMixins - { - public static System.IDisposable InvokeCommand(this System.IObservable item, System.Windows.Input.ICommand? command) { } - public static System.IDisposable InvokeCommand(this System.IObservable item, ReactiveUI.ReactiveCommandBase? command) { } - public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) - where TTarget : class { } - public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) - where TTarget : class { } - } - public class ReactiveCommand : ReactiveUI.ReactiveCommandBase - { - protected ReactiveCommand(System.Func> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler) { } - public override System.IObservable CanExecute { get; } - public override System.IObservable IsExecuting { get; } - public override System.IObservable ThrownExceptions { get; } - protected override void Dispose(bool disposing) { } - public override System.IObservable Execute() { } - public override System.IObservable Execute(TParam parameter) { } - public override System.IDisposable Subscribe(System.IObserver observer) { } - } - public static class ReactiveNotifyPropertyChangedMixin - { - public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange = false, bool skipInitial = true) { } - public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange = false) - where TSender : class { } - public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange = false, bool skipInitial = true, bool suppressWarnings = false) { } - } - [System.Runtime.Serialization.DataContract] - public class ReactiveObject : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public ReactiveObject() { } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changed { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changing { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable ThrownExceptions { get; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - public bool AreChangeNotificationsEnabled() { } - public System.IDisposable DelayChangeNotifications() { } - public System.IDisposable SuppressChangeNotifications() { } - } - public class ReactivePropertyChangedEventArgs : System.ComponentModel.PropertyChangedEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs - { - public ReactivePropertyChangedEventArgs(TSender sender, string propertyName) { } - public TSender Sender { get; } - } - public class ReactivePropertyChangingEventArgs : System.ComponentModel.PropertyChangingEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs - { - public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { } - public TSender Sender { get; } - } - [System.Runtime.Serialization.DataContract] - public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable - { - public ReactiveRecord() { } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changed { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changing { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable ThrownExceptions { get; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - public bool AreChangeNotificationsEnabled() { } - public System.IDisposable DelayChangeNotifications() { } - public System.IDisposable SuppressChangeNotifications() { } - } - public static class Reflection - { - public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } - public static System.Type GetEventArgsTypeForEvent(System.Type type, string? eventName) { } - public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } - public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } - public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } - public static System.Action? GetValueSetterOrThrow(System.Reflection.MemberInfo? member) { } - public static bool IsStatic(this System.Reflection.PropertyInfo item) { } - public static System.Type? ReallyFindType(string? type, bool throwOnFailure) { } - public static System.Linq.Expressions.Expression Rewrite(System.Linq.Expressions.Expression? expression) { } - public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } - public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } - } - public enum RegistrationNamespace - { - None = 0, - XamForms = 1, - Winforms = 2, - Wpf = 3, - Uno = 4, - UnoWinUI = 5, - Blazor = 6, - Drawing = 7, - Avalonia = 8, - Maui = 9, - Uwp = 10, - WinUI = 11, - } - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - public static class RoutableViewModelMixin - { - public static System.IDisposable WhenNavigatedTo(this ReactiveUI.IRoutableViewModel item, System.Func onNavigatedTo) { } - public static System.IObservable WhenNavigatedToObservable(this ReactiveUI.IRoutableViewModel item) { } - public static System.IObservable WhenNavigatingFromObservable(this ReactiveUI.IRoutableViewModel item) { } - } - [System.Runtime.Serialization.DataContract] - public class RoutingState : ReactiveUI.ReactiveObject - { - public RoutingState(System.Reactive.Concurrency.IScheduler? scheduler = null) { } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable CurrentViewModel { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public ReactiveUI.ReactiveCommand Navigate { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public ReactiveUI.ReactiveCommand NavigateAndReset { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public ReactiveUI.ReactiveCommand NavigateBack { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> NavigationChanged { get; set; } - [System.Runtime.Serialization.DataMember] - [System.Text.Json.Serialization.JsonRequired] - public System.Collections.ObjectModel.ObservableCollection NavigationStack { get; set; } - } - public static class RoutingStateMixins - { - public static T? FindViewModelInStack(this ReactiveUI.RoutingState item) - where T : ReactiveUI.IRoutableViewModel { } - public static ReactiveUI.IRoutableViewModel? GetCurrentViewModel(this ReactiveUI.RoutingState item) { } - } - public static class RxApp - { - public const int BigCacheLimit = 256; - public const int SmallCacheLimit = 64; - public static System.IObserver DefaultExceptionHandler { get; set; } - public static System.Reactive.Concurrency.IScheduler MainThreadScheduler { get; set; } - public static bool SuppressViewCommandBindingMessage { get; set; } - public static ReactiveUI.ISuspensionHost SuspensionHost { get; set; } - public static System.Reactive.Concurrency.IScheduler TaskpoolScheduler { get; set; } - } - public class ScheduledSubject : System.IDisposable, System.IObservable, System.IObserver, System.Reactive.Subjects.ISubject, System.Reactive.Subjects.ISubject - { - public ScheduledSubject(System.Reactive.Concurrency.IScheduler scheduler, System.IObserver? defaultObserver = null, System.Reactive.Subjects.ISubject? defaultSubject = null) { } - public void Dispose() { } - protected virtual void Dispose(bool isDisposing) { } - public void OnCompleted() { } - public void OnError(System.Exception error) { } - public void OnNext(T value) { } - public System.IDisposable Subscribe(System.IObserver observer) { } - } - public class ShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ShortToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - [System.AttributeUsage(System.AttributeTargets.Class)] - public sealed class SingleInstanceViewAttribute : System.Attribute - { - public SingleInstanceViewAttribute() { } - } - public class SingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public SingleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class StringConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public StringConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - } - public static class SuspensionHostExtensions - { - public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } - public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) - where T : class { } - public static System.IDisposable SetupDefaultSuspendResume(this ReactiveUI.ISuspensionHost item, ReactiveUI.ISuspensionDriver? driver = null) { } - } - public enum TriggerUpdate - { - ViewToViewModel = 0, - ViewModelToView = 1, - } - [System.Serializable] - public class UnhandledErrorException : System.Exception - { - public UnhandledErrorException() { } - public UnhandledErrorException(string message) { } - protected UnhandledErrorException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } - public UnhandledErrorException(string message, System.Exception innerException) { } - } - [System.Serializable] - public class UnhandledInteractionException : System.Exception - { - public UnhandledInteractionException() { } - public UnhandledInteractionException(string message) { } - public UnhandledInteractionException(ReactiveUI.Interaction interaction, TInput input) { } - protected UnhandledInteractionException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } - public UnhandledInteractionException(string message, System.Exception innerException) { } - public TInput Input { get; } - public ReactiveUI.Interaction? Interaction { get; } - public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - [System.AttributeUsage(System.AttributeTargets.Class)] - public sealed class ViewContractAttribute : System.Attribute - { - public ViewContractAttribute(string contract) { } - public string Contract { get; } - } - public static class ViewForMixins - { - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action> block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Func> block) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block, ReactiveUI.IViewFor view) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action block, ReactiveUI.IViewFor? view = null) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block, ReactiveUI.IViewFor? view) { } - } - public static class ViewLocator - { - public static ReactiveUI.IViewLocator Current { get; } - } - [System.Serializable] - public class ViewLocatorNotFoundException : System.Exception - { - public ViewLocatorNotFoundException() { } - public ViewLocatorNotFoundException(string message) { } - protected ViewLocatorNotFoundException(System.Runtime.Serialization.SerializationInfo info, in System.Runtime.Serialization.StreamingContext context) { } - public ViewLocatorNotFoundException(string message, System.Exception innerException) { } - } - public sealed class ViewModelActivator : System.IDisposable - { - public ViewModelActivator() { } - public System.IObservable Activated { get; } - public System.IObservable Deactivated { get; } - public System.IDisposable Activate() { } - public void Deactivate(bool ignoreRefCount = false) { } - public void Dispose() { } - } - public class WaitForDispatcherScheduler : System.Reactive.Concurrency.IScheduler - { - public WaitForDispatcherScheduler(System.Func schedulerFactory) { } - public System.DateTimeOffset Now { get; } - public System.IDisposable Schedule(TState state, System.Func action) { } - public System.IDisposable Schedule(TState state, System.DateTimeOffset dueTime, System.Func action) { } - public System.IDisposable Schedule(TState state, System.TimeSpan dueTime, System.Func action) { } - } - public static class WhenAnyMixin - { - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Linq.Expressions.Expression? property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func selector) { } - } - public static class WhenAnyObservableMixin - { - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12, System.Func selector) - where TSender : class { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt deleted file mode 100644 index a08268e9a0..0000000000 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.ReactiveUI.Net4_7.verified.txt +++ /dev/null @@ -1,1054 +0,0 @@ -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidSupport")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.AndroidX")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Blazor")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Drawing")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Maui")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.TestRunner.Android")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uno.WinUI")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Uwp")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.WinUI")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Winforms")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Wpf")] -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.XamForms")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -namespace ReactiveUI -{ - public static class AutoPersistHelper - { - public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ObservableCollection @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this System.IObservable> @this, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable ActOnEveryObject(this TCollection collection, System.Action onAdd, System.Action onRemove) - where TItem : ReactiveUI.IReactiveObject - where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } - public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.TimeSpan? interval = default) - where T : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersist(this T @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where T : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this System.Collections.ObjectModel.ReadOnlyObservableCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject { } - public static System.IDisposable AutoPersistCollection(this TCollection @this, System.Func> doPersist, System.IObservable manualSaveSignal, System.TimeSpan? interval = default) - where TItem : ReactiveUI.IReactiveObject - where TCollection : System.Collections.Specialized.INotifyCollectionChanged, System.Collections.Generic.IEnumerable { } - } - public enum BindingDirection - { - OneWay = 0, - TwoWay = 1, - AsyncOneWay = 2, - } - public class ByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ByteToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class CanActivateViewFetcher : ReactiveUI.IActivationForViewFetcher - { - public CanActivateViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public static class ChangeSetMixin - { - public static System.IObservable CountChanged(this System.IObservable changeSet) { } - public static System.IObservable> CountChanged(this System.IObservable> changeSet) - where T : notnull { } - public static bool HasCountChanged(this DynamicData.IChangeSet changeSet) { } - } - public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> - { - protected CombinedReactiveCommand(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public override System.IObservable CanExecute { get; } - public override System.IObservable IsExecuting { get; } - public override System.IObservable ThrownExceptions { get; } - protected override void Dispose(bool disposing) { } - public override System.IObservable> Execute() { } - public override System.IObservable> Execute(TParam parameter) { } - public override System.IDisposable Subscribe(System.IObserver> observer) { } - } - public static class CommandBinder - { - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public static ReactiveUI.IReactiveBinding BindCommand(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> propertyName, System.Linq.Expressions.Expression> controlName, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - } - public class CommandBinderImplementation : Splat.IEnableLogger - { - public CommandBinderImplementation() { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.IObservable withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - public ReactiveUI.IReactiveBinding BindCommand(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> controlProperty, System.Linq.Expressions.Expression> withParameter, string? toEvent = null) - where TView : class, ReactiveUI.IViewFor - where TViewModel : class - where TProp : System.Windows.Input.ICommand { } - } - public static class ComparerChainingExtensions - { - public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector) { } - public static System.Collections.Generic.IComparer ThenBy(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } - public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector) { } - public static System.Collections.Generic.IComparer ThenByDescending(this System.Collections.Generic.IComparer? parent, System.Func selector, System.Collections.Generic.IComparer comparer) { } - } - public class ComponentModelTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ComponentModelTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - } - public class CreatesCommandBindingViaCommandParameter : ReactiveUI.ICreatesCommandBinding - { - public CreatesCommandBindingViaCommandParameter() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding - { - public CreatesCommandBindingViaEvent() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public DecimalToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public sealed class DefaultViewLocator : ReactiveUI.IViewLocator, Splat.IEnableLogger - { - public System.Func ViewModelToViewFunc { get; set; } - public ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null) { } - } - public static class DependencyResolverMixins - { - public static void InitializeReactiveUI(this Splat.IMutableDependencyResolver resolver, params ReactiveUI.RegistrationNamespace[] registrationNamespaces) { } - public static void RegisterViewsForViewModels(this Splat.IMutableDependencyResolver resolver, System.Reflection.Assembly assembly) { } - } - public class DoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public DoubleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class DummySuspensionDriver : ReactiveUI.ISuspensionDriver - { - public DummySuspensionDriver() { } - public System.IObservable InvalidateState() { } - public System.IObservable LoadState() { } - public System.IObservable SaveState(object state) { } - } - public class EqualityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public EqualityTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - public static object? DoReferenceCast(object? from, System.Type targetType) { } - } - public static class ExpressionMixins - { - public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } - public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } - public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } - public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } - } - public interface IActivatableView { } - public interface IActivatableViewModel - { - ReactiveUI.ViewModelActivator Activator { get; } - } - public interface IActivationForViewFetcher - { - System.IObservable GetActivationForView(ReactiveUI.IActivatableView view); - int GetAffinityForView(System.Type view); - } - public interface IBindingTypeConverter : Splat.IEnableLogger - { - int GetAffinityForObjects(System.Type fromType, System.Type toType); - bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result); - } - public interface ICanActivate - { - System.IObservable Activated { get; } - System.IObservable Deactivated { get; } - } - public interface IComparerBuilder - { - System.Collections.Generic.IComparer OrderBy(System.Func selector); - System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer); - System.Collections.Generic.IComparer OrderByDescending(System.Func selector); - System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer); - } - public interface ICreatesCommandBinding - { - System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter); - System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); - int GetAffinityForObject(System.Type type, bool hasEventTarget); - } - public interface ICreatesObservableForProperty : Splat.IEnableLogger - { - int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); - System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); - } - public interface IHandleObservableErrors - { - System.IObservable ThrownExceptions { get; } - } - public interface IInteractionBinderImplementation : Splat.IEnableLogger - { - System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - } - public interface IInteractionContext - { - TInput Input { get; } - bool IsHandled { get; } - void SetOutput(TOutput output); - } - public interface IInteraction - { - System.IObservable Handle(TInput input); - System.IDisposable RegisterHandler(System.Action> handler); - System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler); - System.IDisposable RegisterHandler(System.Func, System.IObservable> handler); - } - public interface IMessageBus : Splat.IEnableLogger - { - bool IsRegistered(System.Type type, string? contract = null); - System.IObservable Listen(string? contract = null); - System.IObservable ListenIncludeLatest(string? contract = null); - System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null); - void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null); - void SendMessage(T message, string? contract = null); - } - public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public INPCObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public interface IObservedChange - { - System.Linq.Expressions.Expression? Expression { get; } - TSender Sender { get; } - TValue Value { get; } - } - public interface IOutputContext : ReactiveUI.IInteractionContext - { - TOutput GetOutput(); - } - public interface IPlatformOperations - { - string? GetOrientation(); - } - public interface IPropertyBinderImplementation : Splat.IEnableLogger - { - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class - ; - ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor - ; - } - public interface IPropertyBindingHook - { - bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction); - } - public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public IROObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public interface IReactiveBinding : System.IDisposable - where out TView : ReactiveUI.IViewFor - { - System.IObservable Changed { get; } - ReactiveUI.BindingDirection Direction { get; } - TView View { get; } - System.Linq.Expressions.Expression ViewExpression { get; } - System.Linq.Expressions.Expression ViewModelExpression { get; } - } - public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, System.IDisposable - { - System.IObservable CanExecute { get; } - System.IObservable IsExecuting { get; } - } - public interface IReactiveCommand : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable - { - System.IObservable Execute(); - System.IObservable Execute(TParam parameter); - } - public interface IReactiveNotifyPropertyChanged - { - System.IObservable> Changed { get; } - System.IObservable> Changing { get; } - System.IDisposable SuppressChangeNotifications(); - } - public interface IReactiveObject : Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - void RaisePropertyChanged(System.ComponentModel.PropertyChangedEventArgs args); - void RaisePropertyChanging(System.ComponentModel.PropertyChangingEventArgs args); - } - public static class IReactiveObjectExtensions - { - public static TRet RaiseAndSetIfChanged(this TObj reactiveObject, ref TRet backingField, TRet newValue, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TObj : ReactiveUI.IReactiveObject { } - public static void RaisePropertyChanged(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TSender : ReactiveUI.IReactiveObject { } - public static void RaisePropertyChanging(this TSender reactiveObject, [System.Runtime.CompilerServices.CallerMemberName] string? propertyName = null) - where TSender : ReactiveUI.IReactiveObject { } - public static void SubscribePropertyChangedEvents(this TSender reactiveObject) - where TSender : ReactiveUI.IReactiveObject { } - public static void SubscribePropertyChangingEvents(this TSender reactiveObject) - where TSender : ReactiveUI.IReactiveObject { } - } - public interface IReactivePropertyChangedEventArgs - { - string? PropertyName { get; } - TSender Sender { get; } - } - public interface IRoutableViewModel : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - ReactiveUI.IScreen HostScreen { get; } - string? UrlPathSegment { get; } - } - public interface IScreen - { - ReactiveUI.RoutingState Router { get; } - } - public interface ISetMethodBindingConverter : Splat.IEnableLogger - { - int GetAffinityForObjects(System.Type? fromType, System.Type? toType); - object? PerformSet(object? toTarget, object? newValue, object?[]? arguments); - } - public interface ISuspensionDriver - { - System.IObservable InvalidateState(); - System.IObservable LoadState(); - System.IObservable SaveState(object state); - } - public interface ISuspensionHost : ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - object? AppState { get; set; } - System.Func? CreateNewAppState { get; set; } - System.IObservable IsLaunchingNew { get; set; } - System.IObservable IsResuming { get; set; } - System.IObservable IsUnpausing { get; set; } - System.IObservable ShouldInvalidateState { get; set; } - System.IObservable ShouldPersistState { get; set; } - } - public interface IViewFor : ReactiveUI.IActivatableView - { - object? ViewModel { get; set; } - } - public interface IViewFor : ReactiveUI.IActivatableView, ReactiveUI.IViewFor - where T : class - { - T ViewModel { get; set; } - } - public interface IViewLocator : Splat.IEnableLogger - { - ReactiveUI.IViewFor? ResolveView(T? viewModel, string? contract = null); - } - public class IntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public IntegerToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class InteractionBinderImplementation : ReactiveUI.IInteractionBinderImplementation, Splat.IEnableLogger - { - public InteractionBinderImplementation() { } - public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public System.IDisposable BindInteraction(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class InteractionBindingMixins - { - public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.Threading.Tasks.Task> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static System.IDisposable BindInteraction(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression>> propertyName, System.Func, System.IObservable> handler) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public sealed class InteractionContext : ReactiveUI.IInteractionContext, ReactiveUI.IOutputContext - { - public TInput Input { get; } - public bool IsHandled { get; } - public TOutput GetOutput() { } - public void SetOutput(TOutput output) { } - } - public class Interaction : ReactiveUI.IInteraction - { - public Interaction(System.Reactive.Concurrency.IScheduler? handlerScheduler = null) { } - protected virtual ReactiveUI.IOutputContext GenerateContext(TInput input) { } - protected System.Func, System.IObservable>[] GetHandlers() { } - public virtual System.IObservable Handle(TInput input) { } - public System.IDisposable RegisterHandler(System.Action> handler) { } - public System.IDisposable RegisterHandler(System.Func, System.Threading.Tasks.Task> handler) { } - public System.IDisposable RegisterHandler(System.Func, System.IObservable> handler) { } - } - public class LongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public LongToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class MessageBus : ReactiveUI.IMessageBus, Splat.IEnableLogger - { - public MessageBus() { } - public static ReactiveUI.IMessageBus Current { get; set; } - public bool IsRegistered(System.Type type, string? contract = null) { } - public System.IObservable Listen(string? contract = null) { } - public System.IObservable ListenIncludeLatest(string? contract = null) { } - public System.IDisposable RegisterMessageSource(System.IObservable source, string? contract = null) { } - public void RegisterScheduler(System.Reactive.Concurrency.IScheduler scheduler, string? contract = null) { } - public void SendMessage(T message, string? contract = null) { } - } - public class NullableByteToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableByteToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableDecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableDecimalToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableDoubleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableDoubleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableIntegerToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableIntegerToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableLongToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableLongToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableShortToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class NullableSingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public NullableSingleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public static class OAPHCreationHelperMixin - { - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, System.Linq.Expressions.Expression> property, out ReactiveUI.ObservableAsPropertyHelper result, TRet initialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - public static ReactiveUI.ObservableAsPropertyHelper ToProperty(this System.IObservable target, TObj source, string property, out ReactiveUI.ObservableAsPropertyHelper result, System.Func getInitialValue, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) - where TObj : class, ReactiveUI.IReactiveObject { } - } - public sealed class ObservableAsPropertyHelper : ReactiveUI.IHandleObservableErrors, Splat.IEnableLogger, System.IDisposable - { - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, System.Func? getInitialValue = null, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, System.Action? onChanging = null, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - public bool IsSubscribed { get; } - public System.IObservable ThrownExceptions { get; } - public T Value { get; } - public void Dispose() { } - public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - } - public static class ObservableFuncMixins - { - public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } - } - public static class ObservableLoggingMixin - { - public static System.IObservable Log(this System.IObservable @this, TObj logObject, string? message = null, System.Func? stringifier = null) - where TObj : Splat.IEnableLogger { } - public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.IObservable? next = null, string? message = null) - where TObj : Splat.IEnableLogger { } - public static System.IObservable LoggedCatch(this System.IObservable @this, TObj klass, System.Func> next, string? message = null) - where TObj : Splat.IEnableLogger - where TException : System.Exception { } - } - public static class ObservableMixins - { - public static System.IObservable WhereNotNull(this System.IObservable observable) { } - } - public class ObservedChange : ReactiveUI.IObservedChange - { - public ObservedChange(TSender sender, System.Linq.Expressions.Expression? expression, TValue value) { } - public System.Linq.Expressions.Expression? Expression { get; } - public TSender Sender { get; } - public TValue Value { get; } - } - public static class ObservedChangedMixin - { - public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } - public static TValue GetValue(this ReactiveUI.IObservedChange item) { } - public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } - public static System.IObservable Value(this System.IObservable> item) { } - } - public static class OrderedComparer - { - public static ReactiveUI.IComparerBuilder For() { } - public static ReactiveUI.IComparerBuilder For(System.Collections.Generic.IEnumerable enumerable) { } - } - public static class OrderedComparer - { - public static System.Collections.Generic.IComparer OrderBy(System.Func selector) { } - public static System.Collections.Generic.IComparer OrderBy(System.Func selector, System.Collections.Generic.IComparer comparer) { } - public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector) { } - public static System.Collections.Generic.IComparer OrderByDescending(System.Func selector, System.Collections.Generic.IComparer comparer) { } - } - public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public POCOObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public static class PlatformRegistrationManager - { - public static void SetRegistrationNamespaces(params ReactiveUI.RegistrationNamespace[] namespaces) { } - } - public class PlatformRegistrations - { - public PlatformRegistrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - public class PropertyBinderImplementation : ReactiveUI.IPropertyBinderImplementation, Splat.IEnableLogger - { - public PropertyBinderImplementation() { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public ReactiveUI.IReactiveBinding> Bind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public System.IDisposable BindTo(System.IObservable observedChange, TTarget? target, System.Linq.Expressions.Expression> propertyExpression, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class { } - public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public ReactiveUI.IReactiveBinding OneWayBind(TViewModel? viewModel, TView view, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class PropertyBindingMixins - { - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func vmToViewConverter, System.Func viewToVmConverter) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, System.Func vmToViewConverter, System.Func viewToVmConverter, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - [return: System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { - "view", - "isViewModel"})] - public static ReactiveUI.IReactiveBinding> Bind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.IObservable? signalViewUpdate, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null, ReactiveUI.IBindingTypeConverter? viewToVMConverterOverride = null, ReactiveUI.TriggerUpdate triggerUpdate = 0) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static System.IDisposable BindTo(this System.IObservable @this, TTarget? target, System.Linq.Expressions.Expression> property, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TTarget : class { } - public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, System.Func selector) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - public static ReactiveUI.IReactiveBinding OneWayBind(this TView view, TViewModel? viewModel, System.Linq.Expressions.Expression> vmProperty, System.Linq.Expressions.Expression> viewProperty, object? conversionHint = null, ReactiveUI.IBindingTypeConverter? vmToViewConverterOverride = null) - where TViewModel : class - where TView : class, ReactiveUI.IViewFor { } - } - public static class ReactiveCommand - { - public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - } - public abstract class ReactiveCommandBase : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable, System.Windows.Input.ICommand - { - protected ReactiveCommandBase() { } - public abstract System.IObservable CanExecute { get; } - public abstract System.IObservable IsExecuting { get; } - public abstract System.IObservable ThrownExceptions { get; } - public void Dispose() { } - protected abstract void Dispose(bool disposing); - public abstract System.IObservable Execute(); - public abstract System.IObservable Execute(TParam parameter); - protected virtual bool ICommandCanExecute(object? parameter) { } - protected virtual void ICommandExecute(object? parameter) { } - protected void OnCanExecuteChanged(bool newValue) { } - public abstract System.IDisposable Subscribe(System.IObserver observer); - } - public static class ReactiveCommandMixins - { - public static System.IDisposable InvokeCommand(this System.IObservable item, System.Windows.Input.ICommand? command) { } - public static System.IDisposable InvokeCommand(this System.IObservable item, ReactiveUI.ReactiveCommandBase? command) { } - public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) - where TTarget : class { } - public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) - where TTarget : class { } - } - public class ReactiveCommand : ReactiveUI.ReactiveCommandBase - { - protected ReactiveCommand(System.Func> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler) { } - public override System.IObservable CanExecute { get; } - public override System.IObservable IsExecuting { get; } - public override System.IObservable ThrownExceptions { get; } - protected override void Dispose(bool disposing) { } - public override System.IObservable Execute() { } - public override System.IObservable Execute(TParam parameter) { } - public override System.IDisposable Subscribe(System.IObserver observer) { } - } - public static class ReactiveNotifyPropertyChangedMixin - { - public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange = false, bool skipInitial = true) { } - public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange = false) - where TSender : class { } - public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange = false, bool skipInitial = true, bool suppressWarnings = false) { } - } - [System.Runtime.Serialization.DataContract] - public class ReactiveObject : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public ReactiveObject() { } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changed { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changing { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable ThrownExceptions { get; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - public bool AreChangeNotificationsEnabled() { } - public System.IDisposable DelayChangeNotifications() { } - public System.IDisposable SuppressChangeNotifications() { } - } - public class ReactivePropertyChangedEventArgs : System.ComponentModel.PropertyChangedEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs - { - public ReactivePropertyChangedEventArgs(TSender sender, string propertyName) { } - public TSender Sender { get; } - } - public class ReactivePropertyChangingEventArgs : System.ComponentModel.PropertyChangingEventArgs, ReactiveUI.IReactivePropertyChangedEventArgs - { - public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { } - public TSender Sender { get; } - } - [System.Runtime.Serialization.DataContract] - public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable - { - public ReactiveRecord() { } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changed { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> Changing { get; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable ThrownExceptions { get; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - public bool AreChangeNotificationsEnabled() { } - public System.IDisposable DelayChangeNotifications() { } - public System.IDisposable SuppressChangeNotifications() { } - } - public static class Reflection - { - public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } - public static System.Type GetEventArgsTypeForEvent(System.Type type, string? eventName) { } - public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } - public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } - public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } - public static System.Action? GetValueSetterOrThrow(System.Reflection.MemberInfo? member) { } - public static bool IsStatic(this System.Reflection.PropertyInfo item) { } - public static System.Type? ReallyFindType(string? type, bool throwOnFailure) { } - public static System.Linq.Expressions.Expression Rewrite(System.Linq.Expressions.Expression? expression) { } - public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } - public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } - } - public enum RegistrationNamespace - { - None = 0, - XamForms = 1, - Winforms = 2, - Wpf = 3, - Uno = 4, - UnoWinUI = 5, - Blazor = 6, - Drawing = 7, - Avalonia = 8, - Maui = 9, - Uwp = 10, - WinUI = 11, - } - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - public static class RoutableViewModelMixin - { - public static System.IDisposable WhenNavigatedTo(this ReactiveUI.IRoutableViewModel item, System.Func onNavigatedTo) { } - public static System.IObservable WhenNavigatedToObservable(this ReactiveUI.IRoutableViewModel item) { } - public static System.IObservable WhenNavigatingFromObservable(this ReactiveUI.IRoutableViewModel item) { } - } - [System.Runtime.Serialization.DataContract] - public class RoutingState : ReactiveUI.ReactiveObject - { - public RoutingState(System.Reactive.Concurrency.IScheduler? scheduler = null) { } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable CurrentViewModel { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public ReactiveUI.ReactiveCommand Navigate { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public ReactiveUI.ReactiveCommand NavigateAndReset { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public ReactiveUI.ReactiveCommand NavigateBack { get; set; } - [System.Runtime.Serialization.IgnoreDataMember] - [System.Text.Json.Serialization.JsonIgnore] - public System.IObservable> NavigationChanged { get; set; } - [System.Runtime.Serialization.DataMember] - [System.Text.Json.Serialization.JsonRequired] - public System.Collections.ObjectModel.ObservableCollection NavigationStack { get; set; } - } - public static class RoutingStateMixins - { - public static T? FindViewModelInStack(this ReactiveUI.RoutingState item) - where T : ReactiveUI.IRoutableViewModel { } - public static ReactiveUI.IRoutableViewModel? GetCurrentViewModel(this ReactiveUI.RoutingState item) { } - } - public static class RxApp - { - public const int BigCacheLimit = 256; - public const int SmallCacheLimit = 64; - public static System.IObserver DefaultExceptionHandler { get; set; } - public static System.Reactive.Concurrency.IScheduler MainThreadScheduler { get; set; } - public static bool SuppressViewCommandBindingMessage { get; set; } - public static ReactiveUI.ISuspensionHost SuspensionHost { get; set; } - public static System.Reactive.Concurrency.IScheduler TaskpoolScheduler { get; set; } - } - public class ScheduledSubject : System.IDisposable, System.IObservable, System.IObserver, System.Reactive.Subjects.ISubject, System.Reactive.Subjects.ISubject - { - public ScheduledSubject(System.Reactive.Concurrency.IScheduler scheduler, System.IObserver? defaultObserver = null, System.Reactive.Subjects.ISubject? defaultSubject = null) { } - public void Dispose() { } - protected virtual void Dispose(bool isDisposing) { } - public void OnCompleted() { } - public void OnError(System.Exception error) { } - public void OnNext(T value) { } - public System.IDisposable Subscribe(System.IObserver observer) { } - } - public class ShortToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public ShortToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - [System.AttributeUsage(System.AttributeTargets.Class)] - public sealed class SingleInstanceViewAttribute : System.Attribute - { - public SingleInstanceViewAttribute() { } - } - public class SingleToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public SingleToStringTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class StringConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public StringConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object? result) { } - } - public static class SuspensionHostExtensions - { - public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } - public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) - where T : class { } - public static System.IDisposable SetupDefaultSuspendResume(this ReactiveUI.ISuspensionHost item, ReactiveUI.ISuspensionDriver? driver = null) { } - } - public enum TriggerUpdate - { - ViewToViewModel = 0, - ViewModelToView = 1, - } - [System.Serializable] - public class UnhandledErrorException : System.Exception - { - public UnhandledErrorException() { } - public UnhandledErrorException(string message) { } - protected UnhandledErrorException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public UnhandledErrorException(string message, System.Exception innerException) { } - } - [System.Serializable] - public class UnhandledInteractionException : System.Exception - { - public UnhandledInteractionException() { } - public UnhandledInteractionException(string message) { } - public UnhandledInteractionException(ReactiveUI.Interaction interaction, TInput input) { } - protected UnhandledInteractionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public UnhandledInteractionException(string message, System.Exception innerException) { } - public TInput Input { get; } - public ReactiveUI.Interaction? Interaction { get; } - public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - [System.AttributeUsage(System.AttributeTargets.Class)] - public sealed class ViewContractAttribute : System.Attribute - { - public ViewContractAttribute(string contract) { } - public string Contract { get; } - } - public static class ViewForMixins - { - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action> block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Action block) { } - public static void WhenActivated(this ReactiveUI.IActivatableViewModel item, System.Func> block) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action> block, ReactiveUI.IViewFor view) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Action block, ReactiveUI.IViewFor? view = null) { } - public static System.IDisposable WhenActivated(this ReactiveUI.IActivatableView item, System.Func> block, ReactiveUI.IViewFor? view) { } - } - public static class ViewLocator - { - public static ReactiveUI.IViewLocator Current { get; } - } - [System.Serializable] - public class ViewLocatorNotFoundException : System.Exception - { - public ViewLocatorNotFoundException() { } - public ViewLocatorNotFoundException(string message) { } - protected ViewLocatorNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public ViewLocatorNotFoundException(string message, System.Exception innerException) { } - } - public sealed class ViewModelActivator : System.IDisposable - { - public ViewModelActivator() { } - public System.IObservable Activated { get; } - public System.IObservable Deactivated { get; } - public System.IDisposable Activate() { } - public void Deactivate(bool ignoreRefCount = false) { } - public void Dispose() { } - } - public class WaitForDispatcherScheduler : System.Reactive.Concurrency.IScheduler - { - public WaitForDispatcherScheduler(System.Func schedulerFactory) { } - public System.DateTimeOffset Now { get; } - public System.IDisposable Schedule(TState state, System.Func action) { } - public System.IDisposable Schedule(TState state, System.DateTimeOffset dueTime, System.Func action) { } - public System.IDisposable Schedule(TState state, System.TimeSpan dueTime, System.Func action) { } - } - public static class WhenAnyMixin - { - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Linq.Expressions.Expression? property3, System.Linq.Expressions.Expression? property4, System.Linq.Expressions.Expression? property5, System.Linq.Expressions.Expression? property6, System.Linq.Expressions.Expression? property7, System.Linq.Expressions.Expression? property8, System.Linq.Expressions.Expression? property9, System.Linq.Expressions.Expression? property10, System.Linq.Expressions.Expression? property11, System.Linq.Expressions.Expression? property12, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Func selector) { } - public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Func selector) { } - public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, System.Linq.Expressions.Expression> property4, System.Linq.Expressions.Expression> property5, System.Linq.Expressions.Expression> property6, System.Linq.Expressions.Expression> property7, System.Linq.Expressions.Expression> property8, System.Linq.Expressions.Expression> property9, System.Linq.Expressions.Expression> property10, System.Linq.Expressions.Expression> property11, System.Linq.Expressions.Expression> property12, System.Func selector) { } - } - public static class WhenAnyObservableMixin - { - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Func selector) - where TSender : class { } - public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Linq.Expressions.Expression?>> obs3, System.Linq.Expressions.Expression?>> obs4, System.Linq.Expressions.Expression?>> obs5, System.Linq.Expressions.Expression?>> obs6, System.Linq.Expressions.Expression?>> obs7, System.Linq.Expressions.Expression?>> obs8, System.Linq.Expressions.Expression?>> obs9, System.Linq.Expressions.Expression?>> obs10, System.Linq.Expressions.Expression?>> obs11, System.Linq.Expressions.Expression?>> obs12, System.Func selector) - where TSender : class { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet6_0.verified.txt deleted file mode 100644 index 304564a83e..0000000000 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet6_0.verified.txt +++ /dev/null @@ -1,55 +0,0 @@ -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] -namespace ReactiveUI.Testing -{ - public interface IBuilder { } - public static class IBuilderExtensions - { - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, System.Collections.Generic.IEnumerable values) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, out TField field, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.IDictionary keyValuePair) - where TKey : notnull { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.KeyValuePair keyValuePair) - where TBuilder : ReactiveUI.Testing.IBuilder - where TKey : notnull { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, TKey key, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder - where TKey : notnull { } - } - public static class MessageBusExtensions - { - public static void With(this ReactiveUI.IMessageBus messageBus, System.Action block) { } - public static TRet With(this ReactiveUI.IMessageBus messageBus, System.Func block) { } - public static System.IDisposable WithMessageBus(this ReactiveUI.IMessageBus messageBus) { } - } - public static class SchedulerExtensions - { - public static void AdvanceByMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static void AdvanceToMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static long FromTimeSpan(this Microsoft.Reactive.Testing.TestScheduler scheduler, System.TimeSpan span) { } - public static Microsoft.Reactive.Testing.Recorded> OnCompletedAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static Microsoft.Reactive.Testing.Recorded> OnErrorAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, System.Exception ex) { } - public static Microsoft.Reactive.Testing.Recorded> OnNextAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, T value) { } - public static void With(this T scheduler, System.Action block) - where T : System.Reactive.Concurrency.IScheduler { } - public static TRet With(this T scheduler, System.Func block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func> block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.IDisposable WithScheduler(System.Reactive.Concurrency.IScheduler scheduler) { } - } - public class TestSequencer : System.IDisposable - { - public TestSequencer() { } - public long CompletedPhases { get; } - public long CurrentPhase { get; } - public System.Threading.Tasks.Task AdvancePhaseAsync(string comment = "") { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet7_0.verified.txt deleted file mode 100644 index 879eba2a36..0000000000 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.DotNet7_0.verified.txt +++ /dev/null @@ -1,55 +0,0 @@ -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName=".NET 7.0")] -namespace ReactiveUI.Testing -{ - public interface IBuilder { } - public static class IBuilderExtensions - { - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, System.Collections.Generic.IEnumerable values) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, out TField field, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.IDictionary keyValuePair) - where TKey : notnull { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.KeyValuePair keyValuePair) - where TBuilder : ReactiveUI.Testing.IBuilder - where TKey : notnull { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, TKey key, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder - where TKey : notnull { } - } - public static class MessageBusExtensions - { - public static void With(this ReactiveUI.IMessageBus messageBus, System.Action block) { } - public static TRet With(this ReactiveUI.IMessageBus messageBus, System.Func block) { } - public static System.IDisposable WithMessageBus(this ReactiveUI.IMessageBus messageBus) { } - } - public static class SchedulerExtensions - { - public static void AdvanceByMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static void AdvanceToMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static long FromTimeSpan(this Microsoft.Reactive.Testing.TestScheduler scheduler, System.TimeSpan span) { } - public static Microsoft.Reactive.Testing.Recorded> OnCompletedAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static Microsoft.Reactive.Testing.Recorded> OnErrorAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, System.Exception ex) { } - public static Microsoft.Reactive.Testing.Recorded> OnNextAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, T value) { } - public static void With(this T scheduler, System.Action block) - where T : System.Reactive.Concurrency.IScheduler { } - public static TRet With(this T scheduler, System.Func block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func> block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.IDisposable WithScheduler(System.Reactive.Concurrency.IScheduler scheduler) { } - } - public class TestSequencer : System.IDisposable - { - public TestSequencer() { } - public long CompletedPhases { get; } - public long CurrentPhase { get; } - public System.Threading.Tasks.Task AdvancePhaseAsync(string comment = "") { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.Net4_7.verified.txt deleted file mode 100644 index f11db08cc5..0000000000 --- a/src/ReactiveUI.Tests/Utilities/ApiApprovalTests.Testing.Net4_7.verified.txt +++ /dev/null @@ -1,55 +0,0 @@ -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -namespace ReactiveUI.Testing -{ - public interface IBuilder { } - public static class IBuilderExtensions - { - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, System.Collections.Generic.IEnumerable values) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.List? field, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, out TField field, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.IDictionary keyValuePair) - where TKey : notnull { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, System.Collections.Generic.KeyValuePair keyValuePair) - where TBuilder : ReactiveUI.Testing.IBuilder - where TKey : notnull { } - public static TBuilder With(this TBuilder builder, ref System.Collections.Generic.Dictionary dictionary, TKey key, TField value) - where TBuilder : ReactiveUI.Testing.IBuilder - where TKey : notnull { } - } - public static class MessageBusExtensions - { - public static void With(this ReactiveUI.IMessageBus messageBus, System.Action block) { } - public static TRet With(this ReactiveUI.IMessageBus messageBus, System.Func block) { } - public static System.IDisposable WithMessageBus(this ReactiveUI.IMessageBus messageBus) { } - } - public static class SchedulerExtensions - { - public static void AdvanceByMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static void AdvanceToMs(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static long FromTimeSpan(this Microsoft.Reactive.Testing.TestScheduler scheduler, System.TimeSpan span) { } - public static Microsoft.Reactive.Testing.Recorded> OnCompletedAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds) { } - public static Microsoft.Reactive.Testing.Recorded> OnErrorAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, System.Exception ex) { } - public static Microsoft.Reactive.Testing.Recorded> OnNextAt(this Microsoft.Reactive.Testing.TestScheduler scheduler, double milliseconds, T value) { } - public static void With(this T scheduler, System.Action block) - where T : System.Reactive.Concurrency.IScheduler { } - public static TRet With(this T scheduler, System.Func block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.Threading.Tasks.Task WithAsync(this T scheduler, System.Func> block) - where T : System.Reactive.Concurrency.IScheduler { } - public static System.IDisposable WithScheduler(System.Reactive.Concurrency.IScheduler scheduler) { } - } - public class TestSequencer : System.IDisposable - { - public TestSequencer() { } - public long CompletedPhases { get; } - public long CurrentPhase { get; } - public System.Threading.Tasks.Task AdvancePhaseAsync(string comment = "") { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt deleted file mode 100644 index 5d90003771..0000000000 --- a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet6_0.verified.txt +++ /dev/null @@ -1,116 +0,0 @@ -[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] -[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] -namespace ReactiveUI.Winforms -{ - public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher, Splat.IEnableLogger - { - public ActivationForViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public class ContentControlBindingHook : ReactiveUI.IPropertyBindingHook - { - public ContentControlBindingHook() { } - public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } - } - public class CreatesWinformsCommandBinding : ReactiveUI.ICreatesCommandBinding - { - public CreatesWinformsCommandBinding() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class PanelSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public PanelSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - public class PlatformOperations : ReactiveUI.IPlatformOperations - { - public PlatformOperations() { } - public string? GetOrientation() { } - } - public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor - { - public ReactiveUserControlNonGeneric() { } - protected override void Dispose(bool disposing) { } - } - public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public ReactiveUserControl() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The ViewModel.")] - [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public TViewModel ViewModel { get; set; } - protected override void Dispose(bool disposing) { } - } - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class RoutedControlHost : System.Windows.Forms.UserControl, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public RoutedControlHost() { } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The router.")] - public ReactiveUI.RoutingState? Router { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class TableContentSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public TableContentSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class ViewModelControlHost : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IReactiveObject, ReactiveUI.IViewFor, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public ViewModelControlHost() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.DefaultValue(true)] - [System.ComponentModel.Description("Cache Views")] - public bool CacheViews { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The Current View")] - public object? Content { get; set; } - public System.Windows.Forms.Control? CurrentView { get; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The viewmodel to host.")] - public object? ViewModel { get; set; } - public static bool DefaultCacheViewsEnabled { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class WinformsCreatesObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public WinformsCreatesObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt deleted file mode 100644 index f8bac7dbb5..0000000000 --- a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet7_0.verified.txt +++ /dev/null @@ -1,116 +0,0 @@ -[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName=".NET 7.0")] -[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] -namespace ReactiveUI.Winforms -{ - public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher, Splat.IEnableLogger - { - public ActivationForViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public class ContentControlBindingHook : ReactiveUI.IPropertyBindingHook - { - public ContentControlBindingHook() { } - public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } - } - public class CreatesWinformsCommandBinding : ReactiveUI.ICreatesCommandBinding - { - public CreatesWinformsCommandBinding() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class PanelSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public PanelSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - public class PlatformOperations : ReactiveUI.IPlatformOperations - { - public PlatformOperations() { } - public string? GetOrientation() { } - } - public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor - { - public ReactiveUserControlNonGeneric() { } - protected override void Dispose(bool disposing) { } - } - public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public ReactiveUserControl() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The ViewModel.")] - [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public TViewModel ViewModel { get; set; } - protected override void Dispose(bool disposing) { } - } - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class RoutedControlHost : System.Windows.Forms.UserControl, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public RoutedControlHost() { } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The router.")] - public ReactiveUI.RoutingState? Router { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class TableContentSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public TableContentSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class ViewModelControlHost : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IReactiveObject, ReactiveUI.IViewFor, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public ViewModelControlHost() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.DefaultValue(true)] - [System.ComponentModel.Description("Cache Views")] - public bool CacheViews { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The Current View")] - public object? Content { get; set; } - public System.Windows.Forms.Control? CurrentView { get; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The viewmodel to host.")] - public object? ViewModel { get; set; } - public static bool DefaultCacheViewsEnabled { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class WinformsCreatesObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public WinformsCreatesObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt deleted file mode 100644 index 32abdea373..0000000000 --- a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.DotNet8_0.verified.txt +++ /dev/null @@ -1,116 +0,0 @@ -[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName=".NET 8.0")] -[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] -namespace ReactiveUI.Winforms -{ - public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher, Splat.IEnableLogger - { - public ActivationForViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public class ContentControlBindingHook : ReactiveUI.IPropertyBindingHook - { - public ContentControlBindingHook() { } - public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } - } - public class CreatesWinformsCommandBinding : ReactiveUI.ICreatesCommandBinding - { - public CreatesWinformsCommandBinding() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class PanelSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public PanelSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - public class PlatformOperations : ReactiveUI.IPlatformOperations - { - public PlatformOperations() { } - public string? GetOrientation() { } - } - public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor - { - public ReactiveUserControlNonGeneric() { } - protected override void Dispose(bool disposing) { } - } - public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public ReactiveUserControl() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The ViewModel.")] - [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public TViewModel ViewModel { get; set; } - protected override void Dispose(bool disposing) { } - } - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class RoutedControlHost : System.Windows.Forms.UserControl, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public RoutedControlHost() { } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The router.")] - public ReactiveUI.RoutingState? Router { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class TableContentSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public TableContentSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class ViewModelControlHost : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IReactiveObject, ReactiveUI.IViewFor, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public ViewModelControlHost() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.DefaultValue(true)] - [System.ComponentModel.Description("Cache Views")] - public bool CacheViews { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The Current View")] - public object? Content { get; set; } - public System.Windows.Forms.Control? CurrentView { get; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The viewmodel to host.")] - public object? ViewModel { get; set; } - public static bool DefaultCacheViewsEnabled { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class WinformsCreatesObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public WinformsCreatesObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt deleted file mode 100644 index 3b64ac1766..0000000000 --- a/src/ReactiveUI.Tests/Utilities/WinformsApiApprovalTests.Winforms.Net4_7.verified.txt +++ /dev/null @@ -1,114 +0,0 @@ -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -namespace ReactiveUI.Winforms -{ - public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher, Splat.IEnableLogger - { - public ActivationForViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public class ContentControlBindingHook : ReactiveUI.IPropertyBindingHook - { - public ContentControlBindingHook() { } - public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } - } - public class CreatesWinformsCommandBinding : ReactiveUI.ICreatesCommandBinding - { - public CreatesWinformsCommandBinding() { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter) { } - public System.IDisposable? BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } - } - public class PanelSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public PanelSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - public class PlatformOperations : ReactiveUI.IPlatformOperations - { - public PlatformOperations() { } - public string? GetOrientation() { } - } - public class ReactiveUserControlNonGeneric : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor - { - public ReactiveUserControlNonGeneric() { } - protected override void Dispose(bool disposing) { } - } - public class ReactiveUserControl : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public ReactiveUserControl() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The ViewModel.")] - [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public TViewModel ViewModel { get; set; } - protected override void Dispose(bool disposing) { } - } - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class RoutedControlHost : System.Windows.Forms.UserControl, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public RoutedControlHost() { } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The router.")] - public ReactiveUI.RoutingState? Router { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class TableContentSetMethodBindingConverter : ReactiveUI.ISetMethodBindingConverter, Splat.IEnableLogger - { - public TableContentSetMethodBindingConverter() { } - public int GetAffinityForObjects(System.Type? fromType, System.Type? toType) { } - public object PerformSet(object? toTarget, object? newValue, object?[]? arguments) { } - } - [System.ComponentModel.DefaultProperty("ViewModel")] - public class ViewModelControlHost : System.Windows.Forms.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IReactiveObject, ReactiveUI.IViewFor, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - public ViewModelControlHost() { } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.DefaultValue(true)] - [System.ComponentModel.Description("Cache Views")] - public bool CacheViews { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The Current View")] - public object? Content { get; set; } - public System.Windows.Forms.Control? CurrentView { get; } - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The default control when no viewmodel is specified")] - public System.Windows.Forms.Control? DefaultContent { get; set; } - [System.ComponentModel.Browsable(false)] - public System.IObservable? ViewContractObservable { get; set; } - [System.ComponentModel.Browsable(false)] - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - [System.ComponentModel.Bindable(true)] - [System.ComponentModel.Category("ReactiveUI")] - [System.ComponentModel.Description("The viewmodel to host.")] - public object? ViewModel { get; set; } - public static bool DefaultCacheViewsEnabled { get; set; } - public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging; - protected override void Dispose(bool disposing) { } - } - public class WinformsCreatesObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public WinformsCreatesObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet6_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet6_0.verified.txt deleted file mode 100644 index cc3c98af59..0000000000 --- a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet6_0.verified.txt +++ /dev/null @@ -1,139 +0,0 @@ -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] -[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] -[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] -[assembly: System.Windows.Markup.XmlnsDefinition("http://reactiveui.net", "ReactiveUI")] -[assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] -namespace ReactiveUI -{ - public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher - { - public ActivationForViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public class AutoDataTemplateBindingHook : ReactiveUI.IPropertyBindingHook - { - public AutoDataTemplateBindingHook() { } - public static System.Lazy DefaultItemTemplate { get; } - public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } - } - public class AutoSuspendHelper : Splat.IEnableLogger - { - public AutoSuspendHelper(System.Windows.Application app) { } - public System.TimeSpan IdleTimeout { get; set; } - } - [System.Flags] - public enum BooleanToVisibilityHint - { - None = 0, - Inverse = 2, - UseHidden = 4, - } - public class BooleanToVisibilityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public BooleanToVisibilityTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class DependencyObjectObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public DependencyObjectObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public class PlatformOperations : ReactiveUI.IPlatformOperations - { - public PlatformOperations() { } - public string? GetOrientation() { } - } - public class ReactivePage : System.Windows.Controls.Page, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactivePage() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class ReactiveUserControl : System.Windows.Controls.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactiveUserControl() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class ReactiveWindow : System.Windows.Window, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactiveWindow() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class RoutedViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, Splat.IEnableLogger - { - public static readonly System.Windows.DependencyProperty DefaultContentProperty; - public static readonly System.Windows.DependencyProperty RouterProperty; - public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; - public RoutedViewHost() { } - public object DefaultContent { get; set; } - public ReactiveUI.RoutingState Router { get; set; } - public string? ViewContract { get; set; } - public System.IObservable ViewContractObservable { get; set; } - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - } - [System.Windows.TemplatePart(Name="PART_Container", Type=typeof(System.Windows.FrameworkElement?))] - [System.Windows.TemplatePart(Name="PART_CurrentContentPresentationSite", Type=typeof(System.Windows.Controls.ContentPresenter?))] - [System.Windows.TemplatePart(Name="PART_PreviousImageSite", Type=typeof(System.Windows.Controls.Image?))] - [System.Windows.TemplateVisualState(GroupName="PresentationStates", Name="Normal")] - public class TransitioningContentControl : System.Windows.Controls.ContentControl - { - public static readonly System.Windows.DependencyProperty TransitionDirectionProperty; - public static readonly System.Windows.DependencyProperty TransitionDurationProperty; - public static readonly System.Windows.DependencyProperty TransitionProperty; - public TransitioningContentControl() { } - public ReactiveUI.TransitioningContentControl.TransitionDirection Direction { get; set; } - public System.TimeSpan Duration { get; set; } - public ReactiveUI.TransitioningContentControl.TransitionType Transition { get; set; } - public event System.Windows.RoutedEventHandler? TransitionCompleted; - public event System.Windows.RoutedEventHandler? TransitionStarted; - public override void OnApplyTemplate() { } - protected override void OnContentChanged(object oldContent, object newContent) { } - public enum TransitionDirection - { - Up = 0, - Down = 1, - Left = 2, - Right = 3, - } - public enum TransitionType - { - Fade = 0, - Move = 1, - Slide = 2, - Drop = 3, - Bounce = 4, - } - } - public class ViewModelViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, Splat.IEnableLogger - { - public static readonly System.Windows.DependencyProperty DefaultContentProperty; - public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ViewModelViewHost() { } - public object DefaultContent { get; set; } - public string? ViewContract { get; set; } - public System.IObservable ViewContractObservable { get; set; } - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - public object? ViewModel { get; set; } - } -} -namespace ReactiveUI.Wpf -{ - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet7_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet7_0.verified.txt deleted file mode 100644 index 1b219049f1..0000000000 --- a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet7_0.verified.txt +++ /dev/null @@ -1,139 +0,0 @@ -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] -[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName=".NET 7.0")] -[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] -[assembly: System.Windows.Markup.XmlnsDefinition("http://reactiveui.net", "ReactiveUI")] -[assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] -namespace ReactiveUI -{ - public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher - { - public ActivationForViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public class AutoDataTemplateBindingHook : ReactiveUI.IPropertyBindingHook - { - public AutoDataTemplateBindingHook() { } - public static System.Lazy DefaultItemTemplate { get; } - public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } - } - public class AutoSuspendHelper : Splat.IEnableLogger - { - public AutoSuspendHelper(System.Windows.Application app) { } - public System.TimeSpan IdleTimeout { get; set; } - } - [System.Flags] - public enum BooleanToVisibilityHint - { - None = 0, - Inverse = 2, - UseHidden = 4, - } - public class BooleanToVisibilityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public BooleanToVisibilityTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class DependencyObjectObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public DependencyObjectObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public class PlatformOperations : ReactiveUI.IPlatformOperations - { - public PlatformOperations() { } - public string? GetOrientation() { } - } - public class ReactivePage : System.Windows.Controls.Page, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactivePage() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class ReactiveUserControl : System.Windows.Controls.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactiveUserControl() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class ReactiveWindow : System.Windows.Window, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactiveWindow() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class RoutedViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, Splat.IEnableLogger - { - public static readonly System.Windows.DependencyProperty DefaultContentProperty; - public static readonly System.Windows.DependencyProperty RouterProperty; - public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; - public RoutedViewHost() { } - public object DefaultContent { get; set; } - public ReactiveUI.RoutingState Router { get; set; } - public string? ViewContract { get; set; } - public System.IObservable ViewContractObservable { get; set; } - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - } - [System.Windows.TemplatePart(Name="PART_Container", Type=typeof(System.Windows.FrameworkElement?))] - [System.Windows.TemplatePart(Name="PART_CurrentContentPresentationSite", Type=typeof(System.Windows.Controls.ContentPresenter?))] - [System.Windows.TemplatePart(Name="PART_PreviousImageSite", Type=typeof(System.Windows.Controls.Image?))] - [System.Windows.TemplateVisualState(GroupName="PresentationStates", Name="Normal")] - public class TransitioningContentControl : System.Windows.Controls.ContentControl - { - public static readonly System.Windows.DependencyProperty TransitionDirectionProperty; - public static readonly System.Windows.DependencyProperty TransitionDurationProperty; - public static readonly System.Windows.DependencyProperty TransitionProperty; - public TransitioningContentControl() { } - public ReactiveUI.TransitioningContentControl.TransitionDirection Direction { get; set; } - public System.TimeSpan Duration { get; set; } - public ReactiveUI.TransitioningContentControl.TransitionType Transition { get; set; } - public event System.Windows.RoutedEventHandler? TransitionCompleted; - public event System.Windows.RoutedEventHandler? TransitionStarted; - public override void OnApplyTemplate() { } - protected override void OnContentChanged(object oldContent, object newContent) { } - public enum TransitionDirection - { - Up = 0, - Down = 1, - Left = 2, - Right = 3, - } - public enum TransitionType - { - Fade = 0, - Move = 1, - Slide = 2, - Drop = 3, - Bounce = 4, - } - } - public class ViewModelViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, Splat.IEnableLogger - { - public static readonly System.Windows.DependencyProperty DefaultContentProperty; - public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ViewModelViewHost() { } - public object DefaultContent { get; set; } - public string? ViewContract { get; set; } - public System.IObservable ViewContractObservable { get; set; } - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - public object? ViewModel { get; set; } - } -} -namespace ReactiveUI.Wpf -{ - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet8_0.verified.txt b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet8_0.verified.txt deleted file mode 100644 index 88aac0b88a..0000000000 --- a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.DotNet8_0.verified.txt +++ /dev/null @@ -1,139 +0,0 @@ -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] -[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.17763.0")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName=".NET 8.0")] -[assembly: System.Runtime.Versioning.TargetPlatform("Windows10.0.17763.0")] -[assembly: System.Windows.Markup.XmlnsDefinition("http://reactiveui.net", "ReactiveUI")] -[assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] -namespace ReactiveUI -{ - public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher - { - public ActivationForViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public class AutoDataTemplateBindingHook : ReactiveUI.IPropertyBindingHook - { - public AutoDataTemplateBindingHook() { } - public static System.Lazy DefaultItemTemplate { get; } - public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } - } - public class AutoSuspendHelper : Splat.IEnableLogger - { - public AutoSuspendHelper(System.Windows.Application app) { } - public System.TimeSpan IdleTimeout { get; set; } - } - [System.Flags] - public enum BooleanToVisibilityHint - { - None = 0, - Inverse = 2, - UseHidden = 4, - } - public class BooleanToVisibilityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public BooleanToVisibilityTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class DependencyObjectObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public DependencyObjectObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public class PlatformOperations : ReactiveUI.IPlatformOperations - { - public PlatformOperations() { } - public string? GetOrientation() { } - } - public class ReactivePage : System.Windows.Controls.Page, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactivePage() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class ReactiveUserControl : System.Windows.Controls.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactiveUserControl() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class ReactiveWindow : System.Windows.Window, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactiveWindow() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class RoutedViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, Splat.IEnableLogger - { - public static readonly System.Windows.DependencyProperty DefaultContentProperty; - public static readonly System.Windows.DependencyProperty RouterProperty; - public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; - public RoutedViewHost() { } - public object DefaultContent { get; set; } - public ReactiveUI.RoutingState Router { get; set; } - public string? ViewContract { get; set; } - public System.IObservable ViewContractObservable { get; set; } - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - } - [System.Windows.TemplatePart(Name="PART_Container", Type=typeof(System.Windows.FrameworkElement?))] - [System.Windows.TemplatePart(Name="PART_CurrentContentPresentationSite", Type=typeof(System.Windows.Controls.ContentPresenter?))] - [System.Windows.TemplatePart(Name="PART_PreviousImageSite", Type=typeof(System.Windows.Controls.Image?))] - [System.Windows.TemplateVisualState(GroupName="PresentationStates", Name="Normal")] - public class TransitioningContentControl : System.Windows.Controls.ContentControl - { - public static readonly System.Windows.DependencyProperty TransitionDirectionProperty; - public static readonly System.Windows.DependencyProperty TransitionDurationProperty; - public static readonly System.Windows.DependencyProperty TransitionProperty; - public TransitioningContentControl() { } - public ReactiveUI.TransitioningContentControl.TransitionDirection Direction { get; set; } - public System.TimeSpan Duration { get; set; } - public ReactiveUI.TransitioningContentControl.TransitionType Transition { get; set; } - public event System.Windows.RoutedEventHandler? TransitionCompleted; - public event System.Windows.RoutedEventHandler? TransitionStarted; - public override void OnApplyTemplate() { } - protected override void OnContentChanged(object oldContent, object newContent) { } - public enum TransitionDirection - { - Up = 0, - Down = 1, - Left = 2, - Right = 3, - } - public enum TransitionType - { - Fade = 0, - Move = 1, - Slide = 2, - Drop = 3, - Bounce = 4, - } - } - public class ViewModelViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, Splat.IEnableLogger - { - public static readonly System.Windows.DependencyProperty DefaultContentProperty; - public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ViewModelViewHost() { } - public object DefaultContent { get; set; } - public string? ViewContract { get; set; } - public System.IObservable ViewContractObservable { get; set; } - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - public object? ViewModel { get; set; } - } -} -namespace ReactiveUI.Wpf -{ - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.Net4_7.verified.txt deleted file mode 100644 index 079d7649ed..0000000000 --- a/src/ReactiveUI.Tests/Utilities/WpfApiApprovalTests.Wpf.Net4_7.verified.txt +++ /dev/null @@ -1,137 +0,0 @@ -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ReactiveUI.Tests")] -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -[assembly: System.Windows.Markup.XmlnsDefinition("http://reactiveui.net", "ReactiveUI")] -[assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] -namespace ReactiveUI -{ - public class ActivationForViewFetcher : ReactiveUI.IActivationForViewFetcher - { - public ActivationForViewFetcher() { } - public System.IObservable GetActivationForView(ReactiveUI.IActivatableView view) { } - public int GetAffinityForView(System.Type view) { } - } - public class AutoDataTemplateBindingHook : ReactiveUI.IPropertyBindingHook - { - public AutoDataTemplateBindingHook() { } - public static System.Lazy DefaultItemTemplate { get; } - public bool ExecuteHook(object? source, object target, System.Func[]> getCurrentViewModelProperties, System.Func[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction) { } - } - public class AutoSuspendHelper : Splat.IEnableLogger - { - public AutoSuspendHelper(System.Windows.Application app) { } - public System.TimeSpan IdleTimeout { get; set; } - } - [System.Flags] - public enum BooleanToVisibilityHint - { - None = 0, - Inverse = 2, - UseHidden = 4, - } - public class BooleanToVisibilityTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger - { - public BooleanToVisibilityTypeConverter() { } - public int GetAffinityForObjects(System.Type fromType, System.Type toType) { } - public bool TryConvert(object? from, System.Type toType, object? conversionHint, out object result) { } - } - public class DependencyObjectObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger - { - public DependencyObjectObservableForProperty() { } - public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } - } - public class PlatformOperations : ReactiveUI.IPlatformOperations - { - public PlatformOperations() { } - public string? GetOrientation() { } - } - public class ReactivePage : System.Windows.Controls.Page, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactivePage() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class ReactiveUserControl : System.Windows.Controls.UserControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactiveUserControl() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class ReactiveWindow : System.Windows.Window, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, ReactiveUI.IViewFor - where TViewModel : class - { - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ReactiveWindow() { } - public TViewModel BindingRoot { get; } - public TViewModel ViewModel { get; set; } - } - public class RoutedViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, Splat.IEnableLogger - { - public static readonly System.Windows.DependencyProperty DefaultContentProperty; - public static readonly System.Windows.DependencyProperty RouterProperty; - public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; - public RoutedViewHost() { } - public object DefaultContent { get; set; } - public ReactiveUI.RoutingState Router { get; set; } - public string? ViewContract { get; set; } - public System.IObservable ViewContractObservable { get; set; } - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - } - [System.Windows.TemplatePart(Name="PART_Container", Type=typeof(System.Windows.FrameworkElement?))] - [System.Windows.TemplatePart(Name="PART_CurrentContentPresentationSite", Type=typeof(System.Windows.Controls.ContentPresenter?))] - [System.Windows.TemplatePart(Name="PART_PreviousImageSite", Type=typeof(System.Windows.Controls.Image?))] - [System.Windows.TemplateVisualState(GroupName="PresentationStates", Name="Normal")] - public class TransitioningContentControl : System.Windows.Controls.ContentControl - { - public static readonly System.Windows.DependencyProperty TransitionDirectionProperty; - public static readonly System.Windows.DependencyProperty TransitionDurationProperty; - public static readonly System.Windows.DependencyProperty TransitionProperty; - public TransitioningContentControl() { } - public ReactiveUI.TransitioningContentControl.TransitionDirection Direction { get; set; } - public System.TimeSpan Duration { get; set; } - public ReactiveUI.TransitioningContentControl.TransitionType Transition { get; set; } - public event System.Windows.RoutedEventHandler? TransitionCompleted; - public event System.Windows.RoutedEventHandler? TransitionStarted; - public override void OnApplyTemplate() { } - protected override void OnContentChanged(object oldContent, object newContent) { } - public enum TransitionDirection - { - Up = 0, - Down = 1, - Left = 2, - Right = 3, - } - public enum TransitionType - { - Fade = 0, - Move = 1, - Slide = 2, - Drop = 3, - Bounce = 4, - } - } - public class ViewModelViewHost : ReactiveUI.TransitioningContentControl, ReactiveUI.IActivatableView, ReactiveUI.IViewFor, Splat.IEnableLogger - { - public static readonly System.Windows.DependencyProperty DefaultContentProperty; - public static readonly System.Windows.DependencyProperty ViewContractObservableProperty; - public static readonly System.Windows.DependencyProperty ViewModelProperty; - public ViewModelViewHost() { } - public object DefaultContent { get; set; } - public string? ViewContract { get; set; } - public System.IObservable ViewContractObservable { get; set; } - public ReactiveUI.IViewLocator? ViewLocator { get; set; } - public object? ViewModel { get; set; } - } -} -namespace ReactiveUI.Wpf -{ - public class Registrations - { - public Registrations() { } - public void Register(System.Action, System.Type> registerFunction) { } - } -} \ No newline at end of file diff --git a/src/ReactiveUI.Tests/Utilities/XamlApiApprovalTests.Blend.Net4_7.verified.txt b/src/ReactiveUI.Tests/Utilities/XamlApiApprovalTests.Blend.Net4_7.verified.txt deleted file mode 100644 index a5c2269f57..0000000000 --- a/src/ReactiveUI.Tests/Utilities/XamlApiApprovalTests.Blend.Net4_7.verified.txt +++ /dev/null @@ -1,23 +0,0 @@ -[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] -namespace ReactiveUI.Blend -{ - public class FollowObservableStateBehavior : Microsoft.Xaml.Behaviors.Behavior - { - public static readonly System.Windows.DependencyProperty StateObservableProperty; - public static readonly System.Windows.DependencyProperty TargetObjectProperty; - public FollowObservableStateBehavior() { } - public bool AutoResubscribeOnError { get; set; } - public System.IObservable StateObservable { get; set; } - public System.Windows.FrameworkElement TargetObject { get; set; } - protected override void OnDetaching() { } - protected static void OnStateObservableChanged(System.Windows.DependencyObject? sender, System.Windows.DependencyPropertyChangedEventArgs e) { } - } - public class ObservableTrigger : Microsoft.Xaml.Behaviors.TriggerBase - { - public static readonly System.Windows.DependencyProperty ObservableProperty; - public ObservableTrigger() { } - public bool AutoResubscribeOnError { get; set; } - public System.IObservable Observable { get; set; } - protected static void OnObservableChanged(System.Windows.DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e) { } - } -} \ No newline at end of file