diff --git a/src/ReactiveUI.Maui/WinUI/DependencyObjectObservableForProperty.cs b/src/ReactiveUI.Maui/WinUI/DependencyObjectObservableForProperty.cs index e8e10459e1..82244a1af6 100644 --- a/src/ReactiveUI.Maui/WinUI/DependencyObjectObservableForProperty.cs +++ b/src/ReactiveUI.Maui/WinUI/DependencyObjectObservableForProperty.cs @@ -21,7 +21,6 @@ public class DependencyObjectObservableForProperty : ICreatesObservableForProper { /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] #endif public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false) @@ -41,7 +40,6 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] #endif public IObservable> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) @@ -92,7 +90,6 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang } #if NET6_0_OR_GREATER - [RequiresDynamicCode("ActuallyGetProperty uses methods that require dynamic code generation")] [RequiresUnreferencedCode("ActuallyGetProperty uses methods that may require unreferenced code")] #endif private static PropertyInfo? ActuallyGetProperty(TypeInfo typeInfo, string propertyName) @@ -113,7 +110,6 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang } #if NET6_0_OR_GREATER - [RequiresDynamicCode("ActuallyGetField uses methods that require dynamic code generation")] [RequiresUnreferencedCode("ActuallyGetField uses methods that may require unreferenced code")] #endif private static FieldInfo? ActuallyGetField(TypeInfo typeInfo, string propertyName) @@ -134,7 +130,6 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang } #if NET6_0_OR_GREATER - [RequiresDynamicCode("GetDependencyPropertyFetcher uses methods that require dynamic code generation")] [RequiresUnreferencedCode("GetDependencyPropertyFetcher uses methods that may require unreferenced code")] #endif private static Func? GetDependencyPropertyFetcher(Type type, string propertyName) diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet10_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet10_0.verified.txt index f9d6773e79..b0ecf3905b 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet10_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet10_0.verified.txt @@ -72,10 +72,6 @@ namespace ReactiveUI } public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("CombinedReactiveCommand uses RxApp and ReactiveCommand which require dynamic code" + - " generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("CombinedReactiveCommand uses RxApp and ReactiveCommand which may require unrefere" + - "nced code.")] 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; } @@ -146,9 +142,7 @@ namespace ReactiveUI [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("BindCommandToObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindCommandToObject uses methods that may require unreferenced code")] public System.IDisposable BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Property access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Property access may reference members that could be trimmed")] - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + public int GetAffinityForObject([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, bool hasEventTarget) { } public int GetAffinityForObject<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] T>(bool hasEventTarget) { } } public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding @@ -160,9 +154,7 @@ namespace ReactiveUI [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Event binding requires dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Event binding may reference members that could be trimmed")] public System.IDisposable BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Event binding requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Event binding may reference members that could be trimmed")] - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + public int GetAffinityForObject([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, bool hasEventTarget) { } public int GetAffinityForObject<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] T>(bool hasEventTarget) { } } public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger @@ -230,14 +222,8 @@ namespace ReactiveUI public static class ExpressionMixins { public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression chain analysis requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression chain analysis may reference members that could be trimmed")] public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member info access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member info access may reference members that could be trimmed")] public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression analysis requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression analysis may reference members that could be trimmed")] public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } } public interface IActivatableView { } @@ -277,17 +263,13 @@ namespace ReactiveUI [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] System.IDisposable BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] - int GetAffinityForObject(System.Type type, bool hasEventTarget); + int GetAffinityForObject([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, bool hasEventTarget); int GetAffinityForObject<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] T>(bool hasEventTarget); } public interface ICreatesObservableForProperty : Splat.IEnableLogger { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); } @@ -333,10 +315,8 @@ namespace ReactiveUI public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger { public INPCObservableForProperty() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } } @@ -396,10 +376,8 @@ namespace ReactiveUI public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger { public IROObservableForProperty() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } } @@ -653,96 +631,44 @@ namespace ReactiveUI } public static class OAPHCreationHelperMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] 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() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } } public static class ObservableFuncMixins { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ToObservable may use methods that require unreference" + + "d code")] public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } } public static class ObservableLoggingMixin @@ -768,24 +694,9 @@ namespace ReactiveUI } public static class ObservedChangedMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("TryGetValue uses expression chain analysis and reflection which require dynamic c" + - "ode generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("TryGetValue uses expression chain analysis and reflection which may reference mem" + - "bers that could be trimmed.")] public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetValue uses expression chain analysis and reflection which require dynamic code" + - " generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetValue uses expression chain analysis and reflection which may reference member" + - "s that could be trimmed.")] public static TValue GetValue(this ReactiveUI.IObservedChange item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetValueOrDefault uses expression chain analysis and reflection which require dyn" + - "amic code generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetValueOrDefault uses expression chain analysis and reflection which may referen" + - "ce members that could be trimmed.")] public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Value method uses GetValue which requires expression chain analysis and reflectio" + - "n.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Value method uses GetValue which may reference members that could be trimmed.")] public static System.IObservable Value(this System.IObservable> item) { } } public static class OrderedComparer @@ -803,11 +714,9 @@ namespace ReactiveUI public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger { public POCOObservableForProperty() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses reflection and type analysis")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject may reference members that could be trimmed")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses reflection and type analysis")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty may reference members that could be trimmed")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } } public static class PlatformRegistrationManager @@ -922,63 +831,24 @@ namespace ReactiveUI } public static class ReactiveCommand { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("CreateCombined uses CombinedReactiveCommand which requires dynamic code generatio" + - "n.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("CreateCombined uses CombinedReactiveCommand which may require unreferenced code.")] public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] 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 @@ -1000,28 +870,20 @@ namespace ReactiveUI { 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("InvokeCommand uses WhenAnyValue which requires dynamic code generation for expres" + - "sion tree analysis.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("InvokeCommand uses WhenAnyValue which may reference members that could be trimmed" + - ".")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of InvokeCommand may use methods that require unreferenc" + + "ed code")] public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) where TTarget : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("InvokeCommand uses WhenAnyValue which requires dynamic code generation for expres" + - "sion tree analysis.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("InvokeCommand uses WhenAnyValue which may reference members that could be trimmed" + - ".")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of InvokeCommand may use methods that require unreferenc" + + "ed code")] public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) where TTarget : class { } } public class ReactiveCommand : ReactiveUI.ReactiveCommandBase { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] protected ReactiveCommand([System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { "Result", "Cancel"})] System.Func, System.Action>>> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] 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; } @@ -1033,52 +895,47 @@ namespace ReactiveUI } public static class ReactiveNotifyPropertyChangedMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName, bool beforeChange) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange, bool skipInitial) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName, bool beforeChange, bool skipInitial) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange, bool skipInitial, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName, bool beforeChange, bool skipInitial, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange, bool skipInitial) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of SubscribeToExpressionChain may use methods that requi" + + "re unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange, bool skipInitial, bool suppressWarnings) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of SubscribeToExpressionChain may use methods that requi" + + "re unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange, bool skipInitial, bool suppressWarnings, bool isDistinct) { } } [System.Runtime.Serialization.DataContract] @@ -1229,34 +1086,21 @@ namespace ReactiveUI } public static class Reflection { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression tree analysis requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression tree analysis may reference members that could be trimmed")] public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Event access may reference members that could be trimmed")] - public static System.Type GetEventArgsTypeForEvent([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)] System.Type type, string? eventName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member access may reference members that could be trimmed")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses reflection to inspect event handler delegate Invoke method")] + public static System.Type GetEventArgsTypeForEvent([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, string? eventName) { } public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member access may reference members that could be trimmed")] public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member access may reference members that could be trimmed")] 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, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicMethods)] System.Type targetType, params string[] methodsToCheck) { } [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Method access may reference members that could be trimmed")] public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } } public enum RegistrationNamespace @@ -1368,8 +1212,6 @@ namespace ReactiveUI public static class SuspensionHostExtensions { public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObserveAppState uses WhenAny which requires dynamic code generation for expressio" + - "n tree analysis")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObserveAppState uses WhenAny which may reference members that could be trimmed")] public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) where T : class { } @@ -1455,714 +1297,543 @@ namespace ReactiveUI } public static class WhenAnyMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, System.Func, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, System.Func, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, System.Func, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string propertyName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string propertyName, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, System.Func selector, bool isDistinct) { } } public static class WhenAnyObservableMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } } 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 cbf24f37e4..430edb3868 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet8_0.verified.txt @@ -72,10 +72,6 @@ namespace ReactiveUI } public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("CombinedReactiveCommand uses RxApp and ReactiveCommand which require dynamic code" + - " generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("CombinedReactiveCommand uses RxApp and ReactiveCommand which may require unrefere" + - "nced code.")] 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; } @@ -146,9 +142,7 @@ namespace ReactiveUI [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("BindCommandToObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindCommandToObject uses methods that may require unreferenced code")] public System.IDisposable BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Property access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Property access may reference members that could be trimmed")] - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + public int GetAffinityForObject([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, bool hasEventTarget) { } public int GetAffinityForObject<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] T>(bool hasEventTarget) { } } public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding @@ -160,9 +154,7 @@ namespace ReactiveUI [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Event binding requires dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Event binding may reference members that could be trimmed")] public System.IDisposable BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Event binding requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Event binding may reference members that could be trimmed")] - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + public int GetAffinityForObject([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, bool hasEventTarget) { } public int GetAffinityForObject<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] T>(bool hasEventTarget) { } } public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger @@ -230,14 +222,8 @@ namespace ReactiveUI public static class ExpressionMixins { public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression chain analysis requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression chain analysis may reference members that could be trimmed")] public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member info access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member info access may reference members that could be trimmed")] public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression analysis requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression analysis may reference members that could be trimmed")] public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } } public interface IActivatableView { } @@ -277,17 +263,13 @@ namespace ReactiveUI [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] System.IDisposable BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] - int GetAffinityForObject(System.Type type, bool hasEventTarget); + int GetAffinityForObject([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, bool hasEventTarget); int GetAffinityForObject<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] T>(bool hasEventTarget); } public interface ICreatesObservableForProperty : Splat.IEnableLogger { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); } @@ -333,10 +315,8 @@ namespace ReactiveUI public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger { public INPCObservableForProperty() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } } @@ -396,10 +376,8 @@ namespace ReactiveUI public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger { public IROObservableForProperty() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } } @@ -653,96 +631,44 @@ namespace ReactiveUI } public static class OAPHCreationHelperMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] 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() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } } public static class ObservableFuncMixins { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ToObservable may use methods that require unreference" + + "d code")] public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } } public static class ObservableLoggingMixin @@ -768,24 +694,9 @@ namespace ReactiveUI } public static class ObservedChangedMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("TryGetValue uses expression chain analysis and reflection which require dynamic c" + - "ode generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("TryGetValue uses expression chain analysis and reflection which may reference mem" + - "bers that could be trimmed.")] public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetValue uses expression chain analysis and reflection which require dynamic code" + - " generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetValue uses expression chain analysis and reflection which may reference member" + - "s that could be trimmed.")] public static TValue GetValue(this ReactiveUI.IObservedChange item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetValueOrDefault uses expression chain analysis and reflection which require dyn" + - "amic code generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetValueOrDefault uses expression chain analysis and reflection which may referen" + - "ce members that could be trimmed.")] public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Value method uses GetValue which requires expression chain analysis and reflectio" + - "n.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Value method uses GetValue which may reference members that could be trimmed.")] public static System.IObservable Value(this System.IObservable> item) { } } public static class OrderedComparer @@ -803,11 +714,9 @@ namespace ReactiveUI public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger { public POCOObservableForProperty() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses reflection and type analysis")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject may reference members that could be trimmed")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses reflection and type analysis")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty may reference members that could be trimmed")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } } public static class PlatformRegistrationManager @@ -922,63 +831,24 @@ namespace ReactiveUI } public static class ReactiveCommand { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("CreateCombined uses CombinedReactiveCommand which requires dynamic code generatio" + - "n.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("CreateCombined uses CombinedReactiveCommand which may require unreferenced code.")] public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] 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 @@ -1000,28 +870,20 @@ namespace ReactiveUI { 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("InvokeCommand uses WhenAnyValue which requires dynamic code generation for expres" + - "sion tree analysis.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("InvokeCommand uses WhenAnyValue which may reference members that could be trimmed" + - ".")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of InvokeCommand may use methods that require unreferenc" + + "ed code")] public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) where TTarget : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("InvokeCommand uses WhenAnyValue which requires dynamic code generation for expres" + - "sion tree analysis.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("InvokeCommand uses WhenAnyValue which may reference members that could be trimmed" + - ".")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of InvokeCommand may use methods that require unreferenc" + + "ed code")] public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) where TTarget : class { } } public class ReactiveCommand : ReactiveUI.ReactiveCommandBase { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] protected ReactiveCommand([System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { "Result", "Cancel"})] System.Func, System.Action>>> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] 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; } @@ -1033,52 +895,47 @@ namespace ReactiveUI } public static class ReactiveNotifyPropertyChangedMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName, bool beforeChange) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange, bool skipInitial) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName, bool beforeChange, bool skipInitial) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange, bool skipInitial, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName, bool beforeChange, bool skipInitial, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange, bool skipInitial) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of SubscribeToExpressionChain may use methods that requi" + + "re unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange, bool skipInitial, bool suppressWarnings) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of SubscribeToExpressionChain may use methods that requi" + + "re unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange, bool skipInitial, bool suppressWarnings, bool isDistinct) { } } [System.Runtime.Serialization.DataContract] @@ -1229,34 +1086,21 @@ namespace ReactiveUI } public static class Reflection { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression tree analysis requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression tree analysis may reference members that could be trimmed")] public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Event access may reference members that could be trimmed")] - public static System.Type GetEventArgsTypeForEvent([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)] System.Type type, string? eventName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member access may reference members that could be trimmed")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses reflection to inspect event handler delegate Invoke method")] + public static System.Type GetEventArgsTypeForEvent([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, string? eventName) { } public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member access may reference members that could be trimmed")] public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member access may reference members that could be trimmed")] 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, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicMethods)] System.Type targetType, params string[] methodsToCheck) { } [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Method access may reference members that could be trimmed")] public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } } public enum RegistrationNamespace @@ -1368,8 +1212,6 @@ namespace ReactiveUI public static class SuspensionHostExtensions { public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObserveAppState uses WhenAny which requires dynamic code generation for expressio" + - "n tree analysis")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObserveAppState uses WhenAny which may reference members that could be trimmed")] public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) where T : class { } @@ -1455,714 +1297,543 @@ namespace ReactiveUI } public static class WhenAnyMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, System.Func, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, System.Func, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, System.Func, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string propertyName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string propertyName, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, System.Func selector, bool isDistinct) { } } public static class WhenAnyObservableMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } } diff --git a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet9_0.verified.txt b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet9_0.verified.txt index 746aa27d5a..81da8d2550 100644 --- a/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet9_0.verified.txt +++ b/src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.DotNet9_0.verified.txt @@ -72,10 +72,6 @@ namespace ReactiveUI } public class CombinedReactiveCommand : ReactiveUI.ReactiveCommandBase> { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("CombinedReactiveCommand uses RxApp and ReactiveCommand which require dynamic code" + - " generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("CombinedReactiveCommand uses RxApp and ReactiveCommand which may require unrefere" + - "nced code.")] 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; } @@ -146,9 +142,7 @@ namespace ReactiveUI [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("BindCommandToObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindCommandToObject uses methods that may require unreferenced code")] public System.IDisposable BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Property access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Property access may reference members that could be trimmed")] - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + public int GetAffinityForObject([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, bool hasEventTarget) { } public int GetAffinityForObject<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] T>(bool hasEventTarget) { } } public class CreatesCommandBindingViaEvent : ReactiveUI.ICreatesCommandBinding @@ -160,9 +154,7 @@ namespace ReactiveUI [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Event binding requires dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Event binding may reference members that could be trimmed")] public System.IDisposable BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Event binding requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Event binding may reference members that could be trimmed")] - public int GetAffinityForObject(System.Type type, bool hasEventTarget) { } + public int GetAffinityForObject([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, bool hasEventTarget) { } public int GetAffinityForObject<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] T>(bool hasEventTarget) { } } public class DecimalToStringTypeConverter : ReactiveUI.IBindingTypeConverter, Splat.IEnableLogger @@ -230,14 +222,8 @@ namespace ReactiveUI public static class ExpressionMixins { public static object?[]? GetArgumentsArray(this System.Linq.Expressions.Expression expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression chain analysis requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression chain analysis may reference members that could be trimmed")] public static System.Collections.Generic.IEnumerable GetExpressionChain(this System.Linq.Expressions.Expression expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member info access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member info access may reference members that could be trimmed")] public static System.Reflection.MemberInfo? GetMemberInfo(this System.Linq.Expressions.Expression expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression analysis requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression analysis may reference members that could be trimmed")] public static System.Linq.Expressions.Expression? GetParent(this System.Linq.Expressions.Expression expression) { } } public interface IActivatableView { } @@ -277,17 +263,13 @@ namespace ReactiveUI [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] System.IDisposable BindCommandToObject(System.Windows.Input.ICommand? command, object? target, System.IObservable commandParameter, string eventName); - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] - int GetAffinityForObject(System.Type type, bool hasEventTarget); + int GetAffinityForObject([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, bool hasEventTarget); int GetAffinityForObject<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] T>(bool hasEventTarget); } public interface ICreatesObservableForProperty : Splat.IEnableLogger { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false); - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); } @@ -333,10 +315,8 @@ namespace ReactiveUI public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger { public INPCObservableForProperty() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } } @@ -396,10 +376,8 @@ namespace ReactiveUI public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger { public IROObservableForProperty() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } } @@ -653,96 +631,44 @@ namespace ReactiveUI } public static class OAPHCreationHelperMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code gene" + - "ration")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced c" + - "ode")] 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 { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] public ObservableAsPropertyHelper(System.IObservable observable, System.Action onChanged, T? initialValue = default, bool deferSubscription = false, System.Reactive.Concurrency.IScheduler? scheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] 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() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] public static ReactiveUI.ObservableAsPropertyHelper Default(T? initialValue = default, System.Reactive.Concurrency.IScheduler? scheduler = null) { } } public static class ObservableFuncMixins { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ToObservable may use methods that require unreference" + + "d code")] public static System.IObservable ToObservable(this System.Linq.Expressions.Expression> expression, TSource? source, bool beforeChange = false, bool skipInitial = false) { } } public static class ObservableLoggingMixin @@ -768,24 +694,9 @@ namespace ReactiveUI } public static class ObservedChangedMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("TryGetValue uses expression chain analysis and reflection which require dynamic c" + - "ode generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("TryGetValue uses expression chain analysis and reflection which may reference mem" + - "bers that could be trimmed.")] public static string GetPropertyName(this ReactiveUI.IObservedChange item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetValue uses expression chain analysis and reflection which require dynamic code" + - " generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetValue uses expression chain analysis and reflection which may reference member" + - "s that could be trimmed.")] public static TValue GetValue(this ReactiveUI.IObservedChange item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetValueOrDefault uses expression chain analysis and reflection which require dyn" + - "amic code generation.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetValueOrDefault uses expression chain analysis and reflection which may referen" + - "ce members that could be trimmed.")] public static TValue? GetValueOrDefault(this ReactiveUI.IObservedChange item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Value method uses GetValue which requires expression chain analysis and reflectio" + - "n.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Value method uses GetValue which may reference members that could be trimmed.")] public static System.IObservable Value(this System.IObservable> item) { } } public static class OrderedComparer @@ -803,11 +714,9 @@ namespace ReactiveUI public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger { public POCOObservableForProperty() { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetAffinityForObject uses reflection and type analysis")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject may reference members that could be trimmed")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = false) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("GetNotificationForProperty uses reflection and type analysis")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty may reference members that could be trimmed")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] public System.IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { } } public static class PlatformRegistrationManager @@ -922,63 +831,24 @@ namespace ReactiveUI } public static class ReactiveCommand { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand Create(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("CreateCombined uses CombinedReactiveCommand which requires dynamic code generatio" + - "n.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("CreateCombined uses CombinedReactiveCommand which may require unreferenced code.")] public static ReactiveUI.CombinedReactiveCommand CreateCombined(System.Collections.Generic.IEnumerable> childCommands, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromObservable(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateFromTask(System.Func> execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Action execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] public static ReactiveUI.ReactiveCommand CreateRunInBackground(System.Func execute, System.IObservable? canExecute = null, System.Reactive.Concurrency.IScheduler? backgroundScheduler = null, System.Reactive.Concurrency.IScheduler? outputScheduler = null) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] 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 @@ -1000,28 +870,20 @@ namespace ReactiveUI { 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("InvokeCommand uses WhenAnyValue which requires dynamic code generation for expres" + - "sion tree analysis.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("InvokeCommand uses WhenAnyValue which may reference members that could be trimmed" + - ".")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of InvokeCommand may use methods that require unreferenc" + + "ed code")] public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression> commandProperty) where TTarget : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("InvokeCommand uses WhenAnyValue which requires dynamic code generation for expres" + - "sion tree analysis.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("InvokeCommand uses WhenAnyValue which may reference members that could be trimmed" + - ".")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of InvokeCommand may use methods that require unreferenc" + + "ed code")] public static System.IDisposable InvokeCommand(this System.IObservable item, TTarget? target, System.Linq.Expressions.Expression?>> commandProperty) where TTarget : class { } } public class ReactiveCommand : ReactiveUI.ReactiveCommandBase { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] protected ReactiveCommand([System.Runtime.CompilerServices.TupleElementNames(new string?[]?[] { "Result", "Cancel"})] System.Func, System.Action>>> execute, System.IObservable? canExecute, System.Reactive.Concurrency.IScheduler? outputScheduler) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] 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; } @@ -1033,52 +895,47 @@ namespace ReactiveUI } public static class ReactiveNotifyPropertyChangedMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName, bool beforeChange) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange, bool skipInitial) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName, bool beforeChange, bool skipInitial) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require un" + + "referenced code")] public static System.IObservable> ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, bool beforeChange, bool skipInitial, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referen" + + "ced by the Expression may be trimmed.")] public static System.IObservable> ObservableForProperty(this TSender? item, string propertyName, bool beforeChange, bool skipInitial, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] public static System.IObservable ObservableForProperty(this TSender? item, System.Linq.Expressions.Expression> property, System.Func selector, bool beforeChange) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange, bool skipInitial) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of SubscribeToExpressionChain may use methods that requi" + + "re unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange, bool skipInitial, bool suppressWarnings) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("This method uses reflection to access properties by name.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to access properties by name.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of SubscribeToExpressionChain may use methods that requi" + + "re unreferenced code")] public static System.IObservable> SubscribeToExpressionChain(this TSender? source, System.Linq.Expressions.Expression? expression, bool beforeChange, bool skipInitial, bool suppressWarnings, bool isDistinct) { } } [System.Runtime.Serialization.DataContract] @@ -1229,34 +1086,21 @@ namespace ReactiveUI } public static class Reflection { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression tree analysis requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression tree analysis may reference members that could be trimmed")] public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression? expression) { } - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Event access may reference members that could be trimmed")] - public static System.Type GetEventArgsTypeForEvent([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)] System.Type type, string? eventName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member access may reference members that could be trimmed")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses reflection to inspect event handler delegate Invoke method")] + public static System.Type GetEventArgsTypeForEvent([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)] System.Type type, string? eventName) { } public static System.Func? GetValueFetcherForProperty(System.Reflection.MemberInfo? member) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member access may reference members that could be trimmed")] public static System.Func GetValueFetcherOrThrow(System.Reflection.MemberInfo? member) { } public static System.Action GetValueSetterForProperty(System.Reflection.MemberInfo? member) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Member access requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Member access may reference members that could be trimmed")] 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, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.None | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicMethods)] System.Type targetType, params string[] methodsToCheck) { } [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Method access may reference members that could be trimmed")] public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] public static bool TryGetAllValuesForPropertyChain(out ReactiveUI.IObservedChange[] changeValues, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, System.Collections.Generic.IEnumerable expressionChain) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] public static bool TrySetValueToPropertyChain(object? target, System.Collections.Generic.IEnumerable expressionChain, TValue value, bool shouldThrow = true) { } } public enum RegistrationNamespace @@ -1368,8 +1212,6 @@ namespace ReactiveUI public static class SuspensionHostExtensions { public static T GetAppState(this ReactiveUI.ISuspensionHost item) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("ObserveAppState uses WhenAny which requires dynamic code generation for expressio" + - "n tree analysis")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("ObserveAppState uses WhenAny which may reference members that could be trimmed")] public static System.IObservable ObserveAppState(this ReactiveUI.ISuspensionHost item) where T : class { } @@ -1455,714 +1297,543 @@ namespace ReactiveUI } public static class WhenAnyMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, System.Func, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, System.Func, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAny(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, System.Func, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenar" + - "ios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the member" + + "s being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAny(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Func, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] public static System.IObservable WhenAnyDynamic(this TSender? sender, System.Linq.Expressions.Expression? property1, System.Linq.Expressions.Expression? property2, System.Func, ReactiveUI.IObservedChange, TRet> selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT" + - " scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced cod" + + "e")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string propertyName) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string propertyName, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] public static System.IObservable> WhenAnyValue(this TSender? sender, System.Linq.Expressions.Expression> property1, System.Linq.Expressions.Expression> property2, System.Linq.Expressions.Expression> property3, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable> WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, System.Func selector, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, System.Func selector) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreference" + + "d code")] 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, bool isDistinct) { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT s" + - "cenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the m" + + "embers being referenced by the Expression may be trimmed.")] public static System.IObservable WhenAnyValue(this TSender? sender, string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name, string property8Name, string property9Name, string property10Name, string property11Name, string property12Name, System.Func selector, bool isDistinct) { } } public static class WhenAnyObservableMixin { - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] public static System.IObservable WhenAnyObservable(this TSender? sender, System.Linq.Expressions.Expression?>> obs1, System.Linq.Expressions.Expression?>> obs2, System.Func selector) where TSender : class { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in " + - "AOT scenarios.")] - [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unrefe" + + "renced code")] 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 { } } diff --git a/src/ReactiveUI.Winforms/CreatesWinformsCommandBinding.cs b/src/ReactiveUI.Winforms/CreatesWinformsCommandBinding.cs index 42e0dadf1f..c2fadfa113 100644 --- a/src/ReactiveUI.Winforms/CreatesWinformsCommandBinding.cs +++ b/src/ReactiveUI.Winforms/CreatesWinformsCommandBinding.cs @@ -22,10 +22,15 @@ public class CreatesWinformsCommandBinding : ICreatesCommandBinding /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] + // [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] + // [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] #endif - public int GetAffinityForObject(Type type, bool hasEventTarget) + public int GetAffinityForObject( +#if NET6_0_OR_GREATER + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.PublicProperties)] +#endif + Type type, + bool hasEventTarget) { var isWinformControl = typeof(Control).IsAssignableFrom(type); diff --git a/src/ReactiveUI.Winforms/WinformsCreatesObservableForProperty.cs b/src/ReactiveUI.Winforms/WinformsCreatesObservableForProperty.cs index 462d12fb26..f906a73972 100644 --- a/src/ReactiveUI.Winforms/WinformsCreatesObservableForProperty.cs +++ b/src/ReactiveUI.Winforms/WinformsCreatesObservableForProperty.cs @@ -13,7 +13,6 @@ namespace ReactiveUI.Winforms; /// /// #if NET6_0_OR_GREATER -[RequiresDynamicCode("WinformsCreatesObservableForProperty uses methods that require dynamic code generation")] [RequiresUnreferencedCode("WinformsCreatesObservableForProperty uses methods that may require unreferenced code")] #endif public class WinformsCreatesObservableForProperty : ICreatesObservableForProperty @@ -24,7 +23,6 @@ public class WinformsCreatesObservableForProperty : ICreatesObservableForPropert /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] #endif public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false) @@ -41,7 +39,6 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] [RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] #endif public IObservable> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) diff --git a/src/ReactiveUI.Wpf/DependencyObjectObservableForProperty.cs b/src/ReactiveUI.Wpf/DependencyObjectObservableForProperty.cs index 83668d9048..816b46fc10 100644 --- a/src/ReactiveUI.Wpf/DependencyObjectObservableForProperty.cs +++ b/src/ReactiveUI.Wpf/DependencyObjectObservableForProperty.cs @@ -14,10 +14,6 @@ namespace ReactiveUI; public class DependencyObjectObservableForProperty : ICreatesObservableForProperty { /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] -#endif public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false) { if (!typeof(DependencyObject).GetTypeInfo().IsAssignableFrom(type.GetTypeInfo())) @@ -29,10 +25,6 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang } /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] -#endif public IObservable> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { #if NET6_0_OR_GREATER @@ -71,7 +63,6 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang } #if NET6_0_OR_GREATER - [RequiresDynamicCode("GetDependencyProperty uses methods that require dynamic code generation")] [RequiresUnreferencedCode("GetDependencyProperty uses methods that may require unreferenced code")] #endif private static DependencyProperty? GetDependencyProperty(Type type, string propertyName) diff --git a/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs b/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs index d7d62f36d2..387b97c3b3 100644 --- a/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs +++ b/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs @@ -8,10 +8,6 @@ namespace ReactiveUI; -#if NET6_0_OR_GREATER -[RequiresDynamicCode("CreatesCommandBinding uses reflection and generic method instantiation")] -[RequiresUnreferencedCode("CreatesCommandBinding may reference members that could be trimmed")] -#endif internal static class CreatesCommandBinding { private static readonly MemoizingMRUCache _bindCommandCache = diff --git a/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaCommandParameter.cs b/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaCommandParameter.cs index 9e1f6403a6..c5fe063a46 100644 --- a/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaCommandParameter.cs +++ b/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaCommandParameter.cs @@ -14,11 +14,12 @@ namespace ReactiveUI; public class CreatesCommandBindingViaCommandParameter : ICreatesCommandBinding { /// + public int GetAffinityForObject( #if NET6_0_OR_GREATER - [RequiresDynamicCode("Property access requires dynamic code generation")] - [RequiresUnreferencedCode("Property access may reference members that could be trimmed")] + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.PublicProperties)] #endif - public int GetAffinityForObject(Type type, bool hasEventTarget) + Type type, + bool hasEventTarget) { if (hasEventTarget) { diff --git a/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs b/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs index 7e568f3f3d..3143fa1d28 100644 --- a/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs +++ b/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaEvent.cs @@ -30,11 +30,12 @@ public class CreatesCommandBindingViaEvent : ICreatesCommandBinding ]; /// + public int GetAffinityForObject( #if NET6_0_OR_GREATER - [RequiresDynamicCode("Event binding requires dynamic code generation")] - [RequiresUnreferencedCode("Event binding may reference members that could be trimmed")] + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.PublicProperties)] #endif - public int GetAffinityForObject(Type type, bool hasEventTarget) + Type type, + bool hasEventTarget) { if (hasEventTarget) { diff --git a/src/ReactiveUI/Expression/Reflection.cs b/src/ReactiveUI/Expression/Reflection.cs index 2af8d6f77d..11585cc5fc 100644 --- a/src/ReactiveUI/Expression/Reflection.cs +++ b/src/ReactiveUI/Expression/Reflection.cs @@ -14,11 +14,8 @@ namespace ReactiveUI; [Preserve(AllMembers = true)] public static class Reflection { - [SuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "Marked as Preserve")] - [SuppressMessage("Trimming", "IL2026:Calling members annotated with 'RequiresUnreferencedCodeAttribute' may break functionality when trimming application code.", Justification = "Marked as Preserve")] private static readonly ExpressionRewriter _expressionRewriter = new(); - [SuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "Marked as Preserve")] [SuppressMessage("Trimming", "IL2026:Calling members annotated with 'RequiresUnreferencedCodeAttribute' may break functionality when trimming application code.", Justification = "Marked as Preserve")] private static readonly MemoizingMRUCache _typeCache = new( static (type, _) => GetTypeHelper(type), @@ -39,10 +36,6 @@ public static class Reflection /// /// The expression to generate the property names from. /// A string form for the property the expression is pointing to. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Expression tree analysis requires dynamic code generation")] - [RequiresUnreferencedCode("Expression tree analysis may reference members that could be trimmed")] -#endif public static string ExpressionToPropertyNames(Expression? expression) // TODO: Create Test { expression.ArgumentNullExceptionThrowIfNull(nameof(expression)); @@ -87,10 +80,6 @@ public static string ExpressionToPropertyNames(Expression? expression) // TODO: /// /// The member info to convert. /// A Func that takes in the object/indexes and returns the value. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Member access requires dynamic code generation")] - [RequiresUnreferencedCode("Member access may reference members that could be trimmed")] -#endif public static Func? GetValueFetcherForProperty(MemberInfo? member) // TODO: Create Test { member.ArgumentNullExceptionThrowIfNull(nameof(member)); @@ -113,10 +102,6 @@ public static string ExpressionToPropertyNames(Expression? expression) // TODO: /// /// The member info to convert. /// A Func that takes in the object/indexes and returns the value. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Member access requires dynamic code generation")] - [RequiresUnreferencedCode("Member access may reference members that could be trimmed")] -#endif public static Func GetValueFetcherOrThrow(MemberInfo? member) // TODO: Create Test { member.ArgumentNullExceptionThrowIfNull(nameof(member)); @@ -156,10 +141,6 @@ public static string ExpressionToPropertyNames(Expression? expression) // TODO: /// /// The member info to convert. /// A Func that takes in the object/indexes and sets the value. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Member access requires dynamic code generation")] - [RequiresUnreferencedCode("Member access may reference members that could be trimmed")] -#endif public static Action? GetValueSetterOrThrow(MemberInfo? member) // TODO: Create Test { member.ArgumentNullExceptionThrowIfNull(nameof(member)); @@ -180,10 +161,6 @@ public static string ExpressionToPropertyNames(Expression? expression) // TODO: /// A list of expressions which will point towards a property or field. /// The type of the end value we are trying to get. /// If the value was successfully retrieved or not. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] -#endif public static bool TryGetValueForPropertyChain(out TValue changeValue, object? current, IEnumerable expressionChain) // TODO: Create Test { var expressions = expressionChain.ToList(); @@ -225,10 +202,6 @@ public static bool TryGetValueForPropertyChain(out TValue changeValue, o /// The object that starts the property chain. /// A list of expressions which will point towards a property or field. /// If the value was successfully retrieved or not. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] -#endif public static bool TryGetAllValuesForPropertyChain(out IObservedChange[] changeValues, object? current, IEnumerable expressionChain) // TODO: Create Test { var currentIndex = 0; @@ -279,10 +252,6 @@ public static bool TryGetAllValuesForPropertyChain(out IObservedChangeIf we should throw if we are unable to set the value. /// The type of the end value we are trying to set. /// If the value was successfully retrieved or not. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Expression evaluation requires dynamic code generation")] - [RequiresUnreferencedCode("Expression evaluation may reference members that could be trimmed")] -#endif public static bool TrySetValueToPropertyChain(object? target, IEnumerable expressionChain, TValue value, bool shouldThrow = true) // TODO: Create Test { var expressions = expressionChain.ToList(); @@ -345,19 +314,18 @@ public static bool TrySetValueToPropertyChain(object? target, IEnumerabl /// The Type of the EventArgs to use. /// If there is no event matching the name on the target type. #if NET6_0_OR_GREATER - [RequiresUnreferencedCode("Event access may reference members that could be trimmed")] + [RequiresUnreferencedCode("Uses reflection to inspect event handler delegate Invoke method")] #endif public static Type GetEventArgsTypeForEvent( #if NET6_0_OR_GREATER - [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents)] #endif Type type, string? eventName) // TODO: Create Test { type.ArgumentNullExceptionThrowIfNull(nameof(type)); - var ti = type; - var ei = ti.GetRuntimeEvent(eventName!); + var ei = type.GetRuntimeEvent(eventName!); if (ei is null || ei.EventHandlerType is null) { throw new Exception($"Couldn't find {type.FullName}.{eventName}"); @@ -379,11 +347,35 @@ public static Type GetEventArgsTypeForEvent( [RequiresUnreferencedCode("Method access may reference members that could be trimmed")] #endif public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object targetObject, params string[] methodsToCheck) // TODO: Create Test + { + if (targetObject is null) + { + throw new ArgumentNullException(nameof(targetObject)); + } + + ThrowIfMethodsNotOverloaded(callingTypeName, targetObject.GetType(), methodsToCheck); + } + + /// + /// Checks to make sure that the specified method names on the target object + /// are overriden. + /// + /// The name of the calling type. + /// The type to check. + /// The name of the methods to check. + /// Thrown if the methods aren't overriden on the target object. + public static void ThrowIfMethodsNotOverloaded( + string callingTypeName, +#if NET6_0_OR_GREATER + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] +#endif + Type targetType, + params string[] methodsToCheck) // TODO: Create Test { var (methodName, methodImplementation) = methodsToCheck .Select(x => { - var methods = targetObject.GetType().GetTypeInfo().DeclaredMethods; + var methods = targetType.GetTypeInfo().DeclaredMethods; return (methodName: x, methodImplementation: methods.FirstOrDefault(y => y.Name == x)); }) .FirstOrDefault(x => x.methodImplementation is null); @@ -407,9 +399,8 @@ public static bool IsStatic(this PropertyInfo item) // TODO: Create Test return method.IsStatic; } -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("ViewModelWhenAnyValue may reference types that could be trimmed")] - [RequiresDynamicCode("ViewModelWhenAnyValue uses reflection which requires dynamic code generation")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of ViewModelWhenAnyValue may use methods that require unreferenced code")] #endif internal static IObservable ViewModelWhenAnyValue(TViewModel? viewModel, TView view, Expression? expression) where TView : class, IViewFor @@ -420,7 +411,7 @@ internal static IObservable ViewModelWhenAnyValue(TVi .Switch()!; #if NET6_0_OR_GREATER - [RequiresUnreferencedCode("Method access may reference members that could be trimmed")] + [RequiresUnreferencedCode("The type might be removed")] #endif private static Type? GetTypeHelper(string type) => Type.GetType( type, diff --git a/src/ReactiveUI/Interfaces/ICreatesCommandBinding.cs b/src/ReactiveUI/Interfaces/ICreatesCommandBinding.cs index 882134951b..4e8d6bc46e 100644 --- a/src/ReactiveUI/Interfaces/ICreatesCommandBinding.cs +++ b/src/ReactiveUI/Interfaces/ICreatesCommandBinding.cs @@ -26,11 +26,12 @@ public interface ICreatesCommandBinding /// event target. /// A positive integer if BCTO is supported, zero or a negative /// value otherwise. + int GetAffinityForObject( #if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.PublicProperties)] #endif - int GetAffinityForObject(Type type, bool hasEventTarget); + Type type, + bool hasEventTarget); /// /// Returns a positive integer when this class supports binding a command diff --git a/src/ReactiveUI/Interfaces/ICreatesObservableForProperty.cs b/src/ReactiveUI/Interfaces/ICreatesObservableForProperty.cs index 7e29574a1a..9134935b8f 100644 --- a/src/ReactiveUI/Interfaces/ICreatesObservableForProperty.cs +++ b/src/ReactiveUI/Interfaces/ICreatesObservableForProperty.cs @@ -25,8 +25,7 @@ public interface ICreatesObservableForProperty : IEnableLogger /// If true, returns whether GNFP is supported before a change occurs. /// A positive integer if GNFP is supported, zero or a negative /// value otherwise. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] +#if NET6_0_OR_GREATER && WINUI_TARGET [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] #endif int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false); @@ -48,8 +47,8 @@ public interface ICreatesObservableForProperty : IEnableLogger /// An IObservable which is signaled whenever the specified /// property on the object changes. If this cannot be done for a /// specified value of beforeChanged, return Observable.Never. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] + +#if NET6_0_OR_GREATER && WINUI_TARGET [RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] #endif IObservable> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false); diff --git a/src/ReactiveUI/Mixins/ExpressionMixins.cs b/src/ReactiveUI/Mixins/ExpressionMixins.cs index bbdbf8943e..4f11a88cdd 100644 --- a/src/ReactiveUI/Mixins/ExpressionMixins.cs +++ b/src/ReactiveUI/Mixins/ExpressionMixins.cs @@ -19,10 +19,6 @@ public static class ExpressionMixins /// /// The expression. /// An enumerable of expressions. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Expression chain analysis requires dynamic code generation")] - [RequiresUnreferencedCode("Expression chain analysis may reference members that could be trimmed")] -#endif public static IEnumerable GetExpressionChain(this Expression expression) { var expressions = new List(); @@ -90,10 +86,6 @@ public static IEnumerable GetExpressionChain(this Expression express /// /// The expression. /// The member info from the expression. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Member info access requires dynamic code generation")] - [RequiresUnreferencedCode("Member info access may reference members that could be trimmed")] -#endif public static MemberInfo? GetMemberInfo(this Expression expression) { expression.ArgumentNullExceptionThrowIfNull(nameof(expression)); @@ -121,10 +113,6 @@ public static IEnumerable GetExpressionChain(this Expression express /// /// The expression. /// The parent expression. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Expression analysis requires dynamic code generation")] - [RequiresUnreferencedCode("Expression analysis may reference members that could be trimmed")] -#endif public static Expression? GetParent(this Expression expression) // TODO: Create Test { expression.ArgumentNullExceptionThrowIfNull(nameof(expression)); diff --git a/src/ReactiveUI/Mixins/ObservedChangedMixin.cs b/src/ReactiveUI/Mixins/ObservedChangedMixin.cs index 77d83852be..bae8462eea 100644 --- a/src/ReactiveUI/Mixins/ObservedChangedMixin.cs +++ b/src/ReactiveUI/Mixins/ObservedChangedMixin.cs @@ -19,10 +19,6 @@ public static class ObservedChangedMixin /// /// The name of the property which has changed. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("TryGetValue uses expression chain analysis and reflection which require dynamic code generation.")] - [RequiresUnreferencedCode("TryGetValue uses expression chain analysis and reflection which may reference members that could be trimmed.")] -#endif public static string GetPropertyName(this IObservedChange item) => item is null ? throw new ArgumentNullException(nameof(item)) @@ -40,10 +36,6 @@ item is null /// /// The current value of the property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetValue uses expression chain analysis and reflection which require dynamic code generation.")] - [RequiresUnreferencedCode("GetValue uses expression chain analysis and reflection which may reference members that could be trimmed.")] -#endif public static TValue GetValue(this IObservedChange item) => item is null ? throw new ArgumentNullException(nameof(item)) @@ -63,10 +55,6 @@ item is null /// /// The current value of the property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetValueOrDefault uses expression chain analysis and reflection which require dynamic code generation.")] - [RequiresUnreferencedCode("GetValueOrDefault uses expression chain analysis and reflection which may reference members that could be trimmed.")] -#endif public static TValue? GetValueOrDefault(this IObservedChange item) => // TODO: Create Test item is null ? throw new ArgumentNullException(nameof(item)) : !item.TryGetValue(out var returnValue) ? default : returnValue; @@ -83,10 +71,6 @@ item is null /// An Observable representing the stream of current values of /// the given change notification stream. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("Value method uses GetValue which requires expression chain analysis and reflection.")] - [RequiresUnreferencedCode("Value method uses GetValue which may reference members that could be trimmed.")] -#endif public static IObservable Value(this IObservable> item) => // TODO: Create Test item.Select(GetValue); @@ -106,10 +90,6 @@ public static IObservable Value(this IObservable /// True if the entire expression was able to be followed, false otherwise. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("TryGetValue uses expression chain analysis and reflection which require dynamic code generation.")] - [RequiresUnreferencedCode("TryGetValue uses expression chain analysis and reflection which may reference members that could be trimmed.")] -#endif internal static bool TryGetValue(this IObservedChange item, out TValue changeValue) { if (!Equals(item.Value, default(TValue))) @@ -140,10 +120,6 @@ internal static bool TryGetValue(this IObservedChange /// The target property to apply the change to. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("TryGetValue uses expression chain analysis and reflection which require dynamic code generation.")] - [RequiresUnreferencedCode("TryGetValue uses expression chain analysis and reflection which may reference members that could be trimmed.")] -#endif internal static void SetValueToProperty( this IObservedChange item, TTarget target, diff --git a/src/ReactiveUI/Mixins/ReactiveNotifyPropertyChangedMixin.cs b/src/ReactiveUI/Mixins/ReactiveNotifyPropertyChangedMixin.cs index 00c2866b9a..82b3e5cec9 100644 --- a/src/ReactiveUI/Mixins/ReactiveNotifyPropertyChangedMixin.cs +++ b/src/ReactiveUI/Mixins/ReactiveNotifyPropertyChangedMixin.cs @@ -12,8 +12,9 @@ namespace ReactiveUI; [Preserve(AllMembers = true)] public static class ReactiveNotifyPropertyChangedMixin { - [SuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "Marked as Preserve")] +#if NET6_0_OR_GREATER && WINUI_TARGET [SuppressMessage("Trimming", "IL2026:Calling members annotated with 'RequiresUnreferencedCodeAttribute' may break functionality when trimming application code.", Justification = "Marked as Preserve")] +#endif private static readonly MemoizingMRUCache<(Type senderType, string propertyName, bool beforeChange), ICreatesObservableForProperty?> _notifyFactoryCache = new( (t, _) => AppLocator.Current.GetServices() @@ -42,8 +43,7 @@ public static class ReactiveNotifyPropertyChangedMixin /// If set to true, values are filtered with DistinctUntilChanged. /// An Observable representing the property change notifications for the given property name. #if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] + [RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable> ObservableForProperty( this TSender? item, @@ -148,8 +148,7 @@ static TValue GetCurrentValue(object sender, string name) /// The property name to observe. /// An observable sequence of observed changes for the given property name. #if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] + [RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable> ObservableForProperty( this TSender? item, @@ -166,8 +165,7 @@ public static IObservable> ObservableForPropert /// If true, the observable will notify immediately before a property is going to change. /// An observable sequence of observed changes for the given property name. #if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] + [RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable> ObservableForProperty( this TSender? item, @@ -186,8 +184,7 @@ public static IObservable> ObservableForPropert /// If true, the observable will not notify with the initial value. /// An observable sequence of observed changes for the given property name. #if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] + [RequiresUnreferencedCode("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable> ObservableForProperty( this TSender? item, @@ -212,9 +209,8 @@ public static IObservable> ObservableForPropert /// An Observable representing the property change /// notifications for the given property. /// -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require unreferenced code")] #endif public static IObservable> ObservableForProperty( this TSender? item, @@ -238,9 +234,8 @@ public static IObservable> ObservableForPropert /// An Observable representing the property change /// notifications for the given property. /// -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require unreferenced code")] #endif public static IObservable> ObservableForProperty( this TSender? item, @@ -267,9 +262,8 @@ public static IObservable> ObservableForPropert /// An Observable representing the property change /// notifications for the given property. /// -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require unreferenced code")] #endif public static IObservable> ObservableForProperty( this TSender? item, @@ -298,9 +292,8 @@ public static IObservable> ObservableForPropert /// An Observable representing the property change /// notifications for the given property. /// -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of ObservableForProperty may use methods that require unreferenced code")] #endif public static IObservable> ObservableForProperty( this TSender? item, @@ -352,7 +345,6 @@ public static IObservable> ObservableForPropert /// notifications for the given property. #if NET6_0_OR_GREATER [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] #endif public static IObservable ObservableForProperty( this TSender? item, @@ -386,7 +378,6 @@ public static IObservable ObservableForProperty( /// notifications for the given property. #if NET6_0_OR_GREATER [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] #endif public static IObservable ObservableForProperty( this TSender? item, @@ -414,9 +405,8 @@ public static IObservable ObservableForProperty( /// A observable which notifies about observed changes. /// /// If we cannot cast from the target value from the specified last property. -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] #endif public static IObservable> SubscribeToExpressionChain( this TSender? source, @@ -437,9 +427,8 @@ public static IObservable> SubscribeToExpressio /// A observable which notifies about observed changes. /// /// If we cannot cast from the target value from the specified last property. -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] #endif public static IObservable> SubscribeToExpressionChain( this TSender? source, @@ -462,9 +451,8 @@ public static IObservable> SubscribeToExpressio /// A observable which notifies about observed changes. /// /// If we cannot cast from the target value from the specified last property. -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("SubscribeToExpressionChain uses methods that may require unreferenced code")] #endif public static IObservable> SubscribeToExpressionChain( this TSender? source, @@ -489,9 +477,8 @@ public static IObservable> SubscribeToExpressio /// A observable which notifies about observed changes. /// /// If we cannot cast from the target value from the specified last property. -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of SubscribeToExpressionChain may use methods that require unreferenced code")] #endif public static IObservable> SubscribeToExpressionChain( this TSender? source, @@ -518,9 +505,8 @@ public static IObservable> SubscribeToExpressio /// A observable which notifies about observed changes. /// /// If we cannot cast from the target value from the specified last property. -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of SubscribeToExpressionChain may use methods that require unreferenced code")] #endif public static IObservable> SubscribeToExpressionChain( this TSender? source, @@ -565,9 +551,8 @@ public static IObservable> SubscribeToExpressio return r; } -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of NestedObservedChanges may use methods that require unreferenced code")] #endif private static IObservable> NestedObservedChanges(Expression expression, IObservedChange sourceChange, bool beforeChange, bool suppressWarnings) { @@ -586,9 +571,8 @@ public static IObservable> SubscribeToExpressio .Select(static x => new ObservedChange(x.Sender, x.Expression, x.GetValueOrDefault())); } -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of NotifyForProperty may use methods that require unreferenced code")] #endif private static IObservable> NotifyForProperty(object sender, Expression expression, bool beforeChange, bool suppressWarnings) { diff --git a/src/ReactiveUI/ObservableForProperty/INPCObservableForProperty.cs b/src/ReactiveUI/ObservableForProperty/INPCObservableForProperty.cs index 05812fdf0e..66167e67ff 100644 --- a/src/ReactiveUI/ObservableForProperty/INPCObservableForProperty.cs +++ b/src/ReactiveUI/ObservableForProperty/INPCObservableForProperty.cs @@ -13,8 +13,7 @@ namespace ReactiveUI; public class INPCObservableForProperty : ICreatesObservableForProperty { /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] +#if NET6_0_OR_GREATER && WINUI_TARGET [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] #endif public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged) @@ -24,8 +23,7 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang } /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] +#if NET6_0_OR_GREATER && WINUI_TARGET [RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] #endif public IObservable> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) diff --git a/src/ReactiveUI/ObservableForProperty/IROObservableForProperty.cs b/src/ReactiveUI/ObservableForProperty/IROObservableForProperty.cs index 0d6ec41a6e..2800d84025 100644 --- a/src/ReactiveUI/ObservableForProperty/IROObservableForProperty.cs +++ b/src/ReactiveUI/ObservableForProperty/IROObservableForProperty.cs @@ -13,8 +13,7 @@ namespace ReactiveUI; public class IROObservableForProperty : ICreatesObservableForProperty { /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] +#if NET6_0_OR_GREATER && WINUI_TARGET [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] #endif public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false) @@ -28,8 +27,7 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang } /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] +#if NET6_0_OR_GREATER && WINUI_TARGET [RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] #endif public IObservable> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) diff --git a/src/ReactiveUI/ObservableForProperty/OAPHCreationHelperMixin.cs b/src/ReactiveUI/ObservableForProperty/OAPHCreationHelperMixin.cs index 32fa6b3c9a..4db9e6314d 100644 --- a/src/ReactiveUI/ObservableForProperty/OAPHCreationHelperMixin.cs +++ b/src/ReactiveUI/ObservableForProperty/OAPHCreationHelperMixin.cs @@ -40,10 +40,6 @@ public static class OAPHCreationHelperMixin /// An initialized ObservableAsPropertyHelper; use this as the backing field /// for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -92,10 +88,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing field /// for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -139,10 +131,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing field /// for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -189,10 +177,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing /// field for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -249,10 +233,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing /// field for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -300,10 +280,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing /// field for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -355,10 +331,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing field /// for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -400,10 +372,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing field /// for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -457,10 +425,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing field /// for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -514,10 +478,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing /// field for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -576,10 +536,6 @@ public static ObservableAsPropertyHelper ToProperty( /// An initialized ObservableAsPropertyHelper; use this as the backing /// field for your property. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif public static ObservableAsPropertyHelper ToProperty( this IObservable target, TObj source, @@ -603,10 +559,6 @@ public static ObservableAsPropertyHelper ToProperty( return result; } -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif private static ObservableAsPropertyHelper ObservableToProperty( this TObj target, IObservable observable, @@ -644,10 +596,6 @@ private static ObservableAsPropertyHelper ObservableToProperty scheduler); } -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif private static ObservableAsPropertyHelper ObservableToProperty( this TObj target, IObservable observable, @@ -684,10 +632,6 @@ private static ObservableAsPropertyHelper ObservableToProperty scheduler); } -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif private static ObservableAsPropertyHelper ObservableToProperty( this TObj target, IObservable observable, @@ -710,10 +654,6 @@ private static ObservableAsPropertyHelper ObservableToProperty scheduler); } -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableToProperty uses RaisingPropertyChanged which requires dynamic code generation")] - [RequiresUnreferencedCode("ObservableToProperty uses RaisingPropertyChanged which may require unreferenced code")] -#endif private static ObservableAsPropertyHelper ObservableToProperty( this TObj target, IObservable observable, diff --git a/src/ReactiveUI/ObservableForProperty/ObservableAsPropertyHelper.cs b/src/ReactiveUI/ObservableForProperty/ObservableAsPropertyHelper.cs index d8e3b6fbaa..30f8a1d79a 100644 --- a/src/ReactiveUI/ObservableForProperty/ObservableAsPropertyHelper.cs +++ b/src/ReactiveUI/ObservableForProperty/ObservableAsPropertyHelper.cs @@ -63,10 +63,6 @@ public sealed class ObservableAsPropertyHelper : IHandleObservableErrors, IDi /// The scheduler that the notifications will be provided on - /// this should normally be a Dispatcher-based scheduler. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] -#endif public ObservableAsPropertyHelper( IObservable observable, Action onChanged, @@ -104,10 +100,6 @@ public ObservableAsPropertyHelper( /// The scheduler that the notifications will provided on - this /// should normally be a Dispatcher-based scheduler. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] -#endif public ObservableAsPropertyHelper( IObservable observable, Action onChanged, @@ -146,10 +138,6 @@ public ObservableAsPropertyHelper( /// The scheduler that the notifications will provided on - this /// should normally be a Dispatcher-based scheduler. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] -#endif public ObservableAsPropertyHelper( IObservable observable, Action onChanged, @@ -249,10 +237,6 @@ public T Value /// normally be a Dispatcher-based scheduler. /// /// A default property helper. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("ObservableAsPropertyHelper uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("ObservableAsPropertyHelper uses methods that may require unreferenced code")] -#endif public static ObservableAsPropertyHelper Default(T? initialValue = default, IScheduler? scheduler = null) => // TODO: Create Test new(Observable.Never, static _ => { }, initialValue!, false, scheduler); diff --git a/src/ReactiveUI/ObservableForProperty/POCOObservableForProperty.cs b/src/ReactiveUI/ObservableForProperty/POCOObservableForProperty.cs index 0ce1e98a4f..57030c3063 100644 --- a/src/ReactiveUI/ObservableForProperty/POCOObservableForProperty.cs +++ b/src/ReactiveUI/ObservableForProperty/POCOObservableForProperty.cs @@ -17,16 +17,14 @@ public class POCOObservableForProperty : ICreatesObservableForProperty private static readonly ConcurrentDictionary<(Type, string), bool> _hasWarned = new(); /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses reflection and type analysis")] - [RequiresUnreferencedCode("GetAffinityForObject may reference members that could be trimmed")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] #endif public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false) => 1; /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses reflection and type analysis")] - [RequiresUnreferencedCode("GetNotificationForProperty may reference members that could be trimmed")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] #endif public IObservable> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { diff --git a/src/ReactiveUI/ObservableFuncMixins.cs b/src/ReactiveUI/ObservableFuncMixins.cs index 97e25a1e53..bbd80b03f9 100644 --- a/src/ReactiveUI/ObservableFuncMixins.cs +++ b/src/ReactiveUI/ObservableFuncMixins.cs @@ -22,9 +22,8 @@ public static class ObservableFuncMixins /// /// An observable Result. /// -#if NET6_0_OR_GREATER - [RequiresUnreferencedCode("This method uses reflection to access properties by name.")] - [RequiresDynamicCode("This method uses reflection to access properties by name.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of ToObservable may use methods that require unreferenced code")] #endif public static IObservable ToObservable( this Expression> expression, diff --git a/src/ReactiveUI/Platforms/android/AndroidObservableForWidgets.cs b/src/ReactiveUI/Platforms/android/AndroidObservableForWidgets.cs index 19a09d59ff..6976d796b0 100644 --- a/src/ReactiveUI/Platforms/android/AndroidObservableForWidgets.cs +++ b/src/ReactiveUI/Platforms/android/AndroidObservableForWidgets.cs @@ -40,10 +40,6 @@ static AndroidObservableForWidgets() => }.ToDictionary(static k => (viewType: k.Type, propertyName: k.Property), static v => v.Func); /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses reflection for property access and type checking which require dynamic code generation")] - [RequiresUnreferencedCode("GetAffinityForObject uses reflection for property access and type checking which may require unreferenced code")] -#endif public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false) { if (beforeChanged) @@ -55,10 +51,6 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang } /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses reflection for property access and type checking which require dynamic code generation")] - [RequiresUnreferencedCode("GetNotificationForProperty uses reflection for property access and type checking which may require unreferenced code")] -#endif public IObservable> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { var type = sender?.GetType(); @@ -69,6 +61,7 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang dispatchItem.Invoke(sender!, expression); } + [SupportedOSPlatform("android23.0")] private static DispatchItem CreateFromAdapterView() { // AdapterView is more complicated because there are two events - one for select and one for deselect diff --git a/src/ReactiveUI/Platforms/android/FlexibleCommandBinder.cs b/src/ReactiveUI/Platforms/android/FlexibleCommandBinder.cs index 74b11a673d..9f289f4e74 100644 --- a/src/ReactiveUI/Platforms/android/FlexibleCommandBinder.cs +++ b/src/ReactiveUI/Platforms/android/FlexibleCommandBinder.cs @@ -19,11 +19,12 @@ public abstract class FlexibleCommandBinder : ICreatesCommandBinding private readonly Dictionary _config = []; /// + public int GetAffinityForObject( #if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses Reflection.GetValueSetterForProperty which requires dynamic code generation")] - [RequiresUnreferencedCode("GetAffinityForObject uses Reflection.GetValueSetterForProperty which may require unreferenced code")] + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.PublicProperties)] #endif - public int GetAffinityForObject(Type type, bool hasEventTarget) + Type type, + bool hasEventTarget) { if (hasEventTarget) { diff --git a/src/ReactiveUI/Platforms/apple-common/KVOObservableForProperty.cs b/src/ReactiveUI/Platforms/apple-common/KVOObservableForProperty.cs index 33a31b09b6..b82ef0e464 100644 --- a/src/ReactiveUI/Platforms/apple-common/KVOObservableForProperty.cs +++ b/src/ReactiveUI/Platforms/apple-common/KVOObservableForProperty.cs @@ -59,18 +59,10 @@ static KVOObservableForProperty() } /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] -#endif public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false) => _declaredInNSObject.Get((type, propertyName)) ? 15 : 0; /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] -#endif public IObservable> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { if (sender is not NSObject obj) diff --git a/src/ReactiveUI/Platforms/apple-common/ObservableForPropertyBase.cs b/src/ReactiveUI/Platforms/apple-common/ObservableForPropertyBase.cs index 7b58a5c4cb..98ab4b125a 100644 --- a/src/ReactiveUI/Platforms/apple-common/ObservableForPropertyBase.cs +++ b/src/ReactiveUI/Platforms/apple-common/ObservableForPropertyBase.cs @@ -28,10 +28,6 @@ public abstract class ObservableForPropertyBase : ICreatesObservableForProperty private readonly Dictionary> _config = []; /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetAffinityForObject uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("GetAffinityForObject uses methods that may require unreferenced code")] -#endif public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false) { if (beforeChanged) @@ -54,10 +50,6 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang } /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("GetNotificationForProperty uses methods that require dynamic code generation")] - [RequiresUnreferencedCode("GetNotificationForProperty uses methods that may require unreferenced code")] -#endif public IObservable> GetNotificationForProperty( object sender, Expression expression, string propertyName, bool beforeChanged = false, bool suppressWarnings = false) { diff --git a/src/ReactiveUI/Platforms/apple-common/TargetActionCommandBinder.cs b/src/ReactiveUI/Platforms/apple-common/TargetActionCommandBinder.cs index d04152fc43..8b4b5b9670 100644 --- a/src/ReactiveUI/Platforms/apple-common/TargetActionCommandBinder.cs +++ b/src/ReactiveUI/Platforms/apple-common/TargetActionCommandBinder.cs @@ -51,7 +51,12 @@ public TargetActionCommandBinder() => #endif /// - public int GetAffinityForObject(Type type, bool hasEventTarget) + public int GetAffinityForObject( +#if NET6_0_OR_GREATER + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.PublicProperties)] +#endif + Type type, + bool hasEventTarget) { if (!_validTypes.Any(x => x.IsAssignableFrom(type))) { diff --git a/src/ReactiveUI/Platforms/mac/AutoSuspendHelper.cs b/src/ReactiveUI/Platforms/mac/AutoSuspendHelper.cs index 8751f66c61..3e5bf8db6e 100644 --- a/src/ReactiveUI/Platforms/mac/AutoSuspendHelper.cs +++ b/src/ReactiveUI/Platforms/mac/AutoSuspendHelper.cs @@ -59,7 +59,7 @@ public AutoSuspendHelper(NSApplicationDelegate appDelegate) { Reflection.ThrowIfMethodsNotOverloaded( nameof(AutoSuspendHelper), - appDelegate, + typeof(NSApplicationDelegate), nameof(ApplicationShouldTerminate), nameof(DidFinishLaunching), nameof(DidResignActive), diff --git a/src/ReactiveUI/Platforms/uikit-common/AutoSuspendHelper.cs b/src/ReactiveUI/Platforms/uikit-common/AutoSuspendHelper.cs index 113567880b..4dc8db0bfe 100644 --- a/src/ReactiveUI/Platforms/uikit-common/AutoSuspendHelper.cs +++ b/src/ReactiveUI/Platforms/uikit-common/AutoSuspendHelper.cs @@ -67,7 +67,7 @@ public AutoSuspendHelper(UIApplicationDelegate appDelegate) { Reflection.ThrowIfMethodsNotOverloaded( nameof(AutoSuspendHelper), - appDelegate, + typeof(UIApplicationDelegate), nameof(FinishedLaunching), nameof(OnActivated), nameof(DidEnterBackground)); diff --git a/src/ReactiveUI/Platforms/uikit-common/FlexibleCommandBinder.cs b/src/ReactiveUI/Platforms/uikit-common/FlexibleCommandBinder.cs index d4e3cc9112..7cc76b7af1 100644 --- a/src/ReactiveUI/Platforms/uikit-common/FlexibleCommandBinder.cs +++ b/src/ReactiveUI/Platforms/uikit-common/FlexibleCommandBinder.cs @@ -27,7 +27,12 @@ public abstract class FlexibleCommandBinder : ICreatesCommandBinding []; /// - public int GetAffinityForObject(Type type, bool hasEventTarget) + public int GetAffinityForObject( +#if NET6_0_OR_GREATER + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.PublicProperties)] +#endif + Type type, + bool hasEventTarget) { if (hasEventTarget) { diff --git a/src/ReactiveUI/ReactiveCommand/CombinedReactiveCommand.cs b/src/ReactiveUI/ReactiveCommand/CombinedReactiveCommand.cs index 881a61f474..5fb1bd18fc 100644 --- a/src/ReactiveUI/ReactiveCommand/CombinedReactiveCommand.cs +++ b/src/ReactiveUI/ReactiveCommand/CombinedReactiveCommand.cs @@ -45,10 +45,6 @@ public class CombinedReactiveCommand : ReactiveCommandBaseThe scheduler where to dispatch the output from the command. /// Fires when required arguments are null. /// Fires if the child commands container is empty. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("CombinedReactiveCommand uses RxApp and ReactiveCommand which require dynamic code generation.")] - [RequiresUnreferencedCode("CombinedReactiveCommand uses RxApp and ReactiveCommand which may require unreferenced code.")] -#endif protected internal CombinedReactiveCommand( IEnumerable> childCommands, IObservable? canExecute, diff --git a/src/ReactiveUI/ReactiveCommand/ReactiveCommand.cs b/src/ReactiveUI/ReactiveCommand/ReactiveCommand.cs index bd950c9a72..41b4e60e6b 100644 --- a/src/ReactiveUI/ReactiveCommand/ReactiveCommand.cs +++ b/src/ReactiveUI/ReactiveCommand/ReactiveCommand.cs @@ -72,10 +72,6 @@ public static class ReactiveCommand /// The ReactiveCommand instance. /// /// execute. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand Create( Action execute, IObservable? canExecute = null, @@ -107,10 +103,6 @@ public static ReactiveCommand Create( /// The ReactiveCommand instance. /// /// execute. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateRunInBackground( Action execute, IObservable? canExecute = null, @@ -134,10 +126,6 @@ public static ReactiveCommand CreateRunInBackground( /// The ReactiveCommand instance. /// /// execute. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand Create( Func execute, IObservable? canExecute = null, @@ -170,10 +158,6 @@ public static ReactiveCommand Create( /// The ReactiveCommand instance. /// /// execute. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateRunInBackground( Func execute, IObservable? canExecute = null, @@ -196,10 +180,6 @@ public static ReactiveCommand CreateRunInBackground( /// The ReactiveCommand instance. /// /// execute. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand Create( Action execute, IObservable? canExecute = null, @@ -232,10 +212,6 @@ public static ReactiveCommand Create( /// The ReactiveCommand instance. /// /// execute. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateRunInBackground( Action execute, IObservable? canExecute = null, @@ -260,10 +236,6 @@ public static ReactiveCommand CreateRunInBackground( /// The ReactiveCommand instance. /// /// execute. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand Create( Func execute, IObservable? canExecute = null, @@ -297,10 +269,6 @@ public static ReactiveCommand Create( /// The ReactiveCommand instance. /// /// execute. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateRunInBackground( Func execute, IObservable? canExecute = null, @@ -334,10 +302,6 @@ public static ReactiveCommand CreateRunInBackground /// The type of the command's result. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("CreateCombined uses CombinedReactiveCommand which requires dynamic code generation.")] - [RequiresUnreferencedCode("CreateCombined uses CombinedReactiveCommand which may require unreferenced code.")] -#endif public static CombinedReactiveCommand CreateCombined( IEnumerable> childCommands, IObservable? canExecute = null, @@ -366,10 +330,6 @@ public static CombinedReactiveCommand CreateCombined /// The type of the command's result. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromObservable( Func> execute, IObservable? canExecute = null, @@ -404,10 +364,6 @@ public static ReactiveCommand CreateFromObservable( /// /// The type of the command's result. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromObservable( Func> execute, IObservable? canExecute = null, @@ -439,10 +395,6 @@ public static ReactiveCommand CreateFromObservable /// The type of the command's result. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromTask( Func> execute, IObservable? canExecute = null, @@ -471,10 +423,6 @@ public static ReactiveCommand CreateFromTask( /// /// The type of the command's result. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromTask( Func> execute, IObservable? canExecute = null, @@ -500,10 +448,6 @@ public static ReactiveCommand CreateFromTask( /// /// The ReactiveCommand instance. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromTask( Func execute, IObservable? canExecute = null, @@ -529,10 +473,6 @@ public static ReactiveCommand CreateFromTask( /// /// The ReactiveCommand instance. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromTask( Func execute, IObservable? canExecute = null, @@ -564,10 +504,6 @@ public static ReactiveCommand CreateFromTask( /// /// The type of the command's result. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromTask( Func> execute, IObservable? canExecute = null, @@ -602,10 +538,6 @@ public static ReactiveCommand CreateFromTask( /// /// The type of the command's result. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromTask( Func> execute, IObservable? canExecute = null, @@ -637,10 +569,6 @@ public static ReactiveCommand CreateFromTask( /// /// The type of the parameter passed through to command execution. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromTask( Func execute, IObservable? canExecute = null, @@ -672,10 +600,6 @@ public static ReactiveCommand CreateFromTask( /// /// The type of the parameter passed through to command execution. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif public static ReactiveCommand CreateFromTask( Func execute, IObservable? canExecute = null, @@ -701,10 +625,6 @@ public static ReactiveCommand CreateFromTask( /// The ReactiveCommand instance. /// /// execute. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif internal static ReactiveCommand CreateFromObservableCancellable( Func Result, Action Cancel)>> execute, IObservable? canExecute = null, @@ -739,10 +659,6 @@ internal static ReactiveCommand CreateFromObservableCancellable /// /// The type of the command's result. /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif internal static ReactiveCommand CreateFromObservableCancellable( Func Result, Action Cancel)>> execute, IObservable? canExecute = null, @@ -803,10 +719,6 @@ public class ReactiveCommand : ReactiveCommandBase /// Thrown if any dependent parameters are null. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif protected internal ReactiveCommand( Func Result, Action Cancel)>> execute, IObservable? canExecute, @@ -861,10 +773,6 @@ protected internal ReactiveCommand( /// execute. /// /// Thrown if any dependent parameters are null. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] - [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")] -#endif protected internal ReactiveCommand( Func> execute, IObservable? canExecute, diff --git a/src/ReactiveUI/ReactiveCommand/ReactiveCommandMixins.cs b/src/ReactiveUI/ReactiveCommand/ReactiveCommandMixins.cs index 7f9f15cb03..d618df80e9 100644 --- a/src/ReactiveUI/ReactiveCommand/ReactiveCommandMixins.cs +++ b/src/ReactiveUI/ReactiveCommand/ReactiveCommandMixins.cs @@ -88,9 +88,8 @@ command is null /// The expression to reference the Command. /// An object that when disposes, disconnects the Observable /// from the command. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("InvokeCommand uses WhenAnyValue which requires dynamic code generation for expression tree analysis.")] - [RequiresUnreferencedCode("InvokeCommand uses WhenAnyValue which may reference members that could be trimmed.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of InvokeCommand may use methods that require unreferenced code")] #endif public static IDisposable InvokeCommand(this IObservable item, TTarget? target, Expression> commandProperty) where TTarget : class @@ -125,9 +124,8 @@ public static IDisposable InvokeCommand(this IObservable item, TT /// The expression to reference the Command. /// An object that when disposes, disconnects the Observable /// from the command. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("InvokeCommand uses WhenAnyValue which requires dynamic code generation for expression tree analysis.")] - [RequiresUnreferencedCode("InvokeCommand uses WhenAnyValue which may reference members that could be trimmed.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of InvokeCommand may use methods that require unreferenced code")] #endif public static IDisposable InvokeCommand(this IObservable item, TTarget? target, Expression?>> commandProperty) where TTarget : class diff --git a/src/ReactiveUI/Suspension/SuspensionHostExtensions.cs b/src/ReactiveUI/Suspension/SuspensionHostExtensions.cs index 3f8ffb87f5..81eb7f67d0 100644 --- a/src/ReactiveUI/Suspension/SuspensionHostExtensions.cs +++ b/src/ReactiveUI/Suspension/SuspensionHostExtensions.cs @@ -57,7 +57,6 @@ public static T GetAppState(this ISuspensionHost item) /// react to hot reloads or state restoration. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("ObserveAppState uses WhenAny which requires dynamic code generation for expression tree analysis")] [RequiresUnreferencedCode("ObserveAppState uses WhenAny which may reference members that could be trimmed")] #endif public static IObservable ObserveAppState(this ISuspensionHost item) diff --git a/src/ReactiveUI/VariadicTemplates.cs b/src/ReactiveUI/VariadicTemplates.cs index de0acb6315..d73d18ae15 100644 --- a/src/ReactiveUI/VariadicTemplates.cs +++ b/src/ReactiveUI/VariadicTemplates.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved. +// Copyright (c) 2025 .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. @@ -35,9 +35,8 @@ public static class WhenAnyMixin /// /// The object where the property chain starts. /// The first property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, @@ -52,15 +51,14 @@ public static IObservable WhenAnyValue( /// The object where the property chain starts. /// The property name to observe. #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, string propertyName) { return sender!.ObservableForProperty(propertyName, beforeChange: false, skipInitial: false, isDistinct: true) - .Select(x => x.Value); + .Select(x => x.Value); } /// @@ -73,9 +71,8 @@ public static IObservable WhenAnyValue( /// The object where the property chain starts. /// The first property chain to reference. This will be a expression pointing to a end property or field. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, @@ -89,8 +86,7 @@ public static IObservable WhenAnyValue( /// AOT-friendly overload that avoids expression trees by using a property name and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, @@ -98,14 +94,14 @@ public static IObservable WhenAnyValue( bool isDistinct) { return sender!.ObservableForProperty(propertyName, beforeChange: false, skipInitial: false, isDistinct: isDistinct) - .Select(x => x.Value); + .Select(x => x.Value); } - - - - - + + + + + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -116,35 +112,33 @@ public static IObservable WhenAnyValue( /// The object where the property chain starts. /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Func selector) + Expression> property1, + Func selector) { return sender!.WhenAny(property1, - (c1) => - selector(c1.Value)); + (c1) => + selector(c1.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - Func selector) + string property1Name, + Func selector) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return o1.Select(selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return o1.Select(selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -157,38 +151,36 @@ public static IObservable WhenAnyValue( /// if set to true [is distinct]. /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Func selector, - bool isDistinct) + Expression> property1, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, - (c1) => - selector(c1.Value), - isDistinct); + (c1) => + selector(c1.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - Func selector, + string property1Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return o1.Select(selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return o1.Select(selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -200,33 +192,31 @@ public static IObservable WhenAnyValue( /// The object where the property chain starts. /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Func, TRet> selector) + this TSender? sender, + Expression> property1, + Func, TRet> selector) { - return sender!.ObservableForProperty(property1, false, false).Select(selector); - } + return sender!.ObservableForProperty(property1, false, false).Select(selector); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - Func, TRet> selector) + this TSender? sender, + string property1Name, + Func, TRet> selector) { - return sender!.ObservableForProperty(property1Name, false, false) - .Select(c1 => selector(c1)); - } + return sender!.ObservableForProperty(property1Name, false, false) + .Select(c1 => selector(c1)); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -239,35 +229,33 @@ public static IObservable WhenAny( /// if set to true [is distinct]. /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Func, TRet> selector, - bool isDistinct) + this TSender? sender, + Expression> property1, + Func, TRet> selector, + bool isDistinct) { - return sender!.ObservableForProperty(property1, false, false, isDistinct).Select(selector); - } + return sender!.ObservableForProperty(property1, false, false, isDistinct).Select(selector); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - Func, TRet> selector, - bool isDistinct) - { - return sender!.ObservableForProperty(property1Name, false, false, isDistinct) - .Select(c1 => selector(c1)); - } + this TSender? sender, + string property1Name, + Func, TRet> selector, + bool isDistinct) + { + return sender!.ObservableForProperty(property1Name, false, false, isDistinct) + .Select(c1 => selector(c1)); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -279,18 +267,17 @@ public static IObservable WhenAny( /// The object where the property chain starts. /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Func, TRet> selector) + this TSender? sender, + Expression? property1, + Func, TRet> selector) { - return ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false).Select(selector); - } + return ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false).Select(selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -303,20 +290,19 @@ public static IObservable WhenAnyDynamic( /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Func, TRet> selector, - bool isDistinct) + this TSender? sender, + Expression? property1, + Func, TRet> selector, + bool isDistinct) { - return ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct).Select(selector); - } - + return ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct).Select(selector); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -327,42 +313,40 @@ public static IObservable WhenAnyDynamic( /// The object where the property chain starts. /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The 2 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2 - ) + Expression> property1, + Expression> property2 + ) { return sender!.WhenAny(property1, property2, - (c1, c2) => - (c1.Value, c2.Value)); + (c1, c2) => + (c1.Value, c2.Value)); } - + /// /// AOT-friendly tuple overloads using property names instead of expressions. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name ) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value) - , (v1,v2) => - (v1,v2) - ); + string property1Name, string property2Name ) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value) + , (v1,v2) => + (v1,v2) + ); } - + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -374,45 +358,43 @@ Expression> property2 /// if set to true [is distinct]. /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The 2 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2 + Expression> property1, + Expression> property2 , bool isDistinct) { return sender!.WhenAny(property1, property2, - (c1, c2) => - (c1.Value, c2.Value), - isDistinct); + (c1, c2) => + (c1.Value, c2.Value), + isDistinct); } - + /// /// AOT-friendly tuple overloads using property names with distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name , + string property1Name, string property2Name , bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value) - , (v1,v2) => - (v1,v2) - ); + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value) + , (v1,v2) => + (v1,v2) + ); } - + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -424,41 +406,39 @@ Expression> property2 /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Func selector) + Expression> property1, + Expression> property2, + Func selector) { return sender!.WhenAny(property1, property2, - (c1, c2) => - selector(c1.Value, c2.Value)); + (c1, c2) => + selector(c1.Value, c2.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2 - , selector); - } + string property1Name, + string property2Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -472,44 +452,42 @@ public static IObservable WhenAnyValue( /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, - (c1, c2) => - selector(c1.Value, c2.Value), - isDistinct); + (c1, c2) => + selector(c1.Value, c2.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - Func selector, + string property1Name, + string property2Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -522,42 +500,40 @@ public static IObservable WhenAnyValue( /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Func, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Func, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - Func, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + Func, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -571,44 +547,42 @@ public static IObservable WhenAny( /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Func, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Func, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - Func, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + Func, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -621,24 +595,23 @@ public static IObservable WhenAny( /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Func, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Func, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -652,26 +625,25 @@ public static IObservable WhenAnyDynamic( /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Func, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - selector - ); - } - + this TSender? sender, + Expression? property1, + Expression? property2, + Func, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + selector + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -683,45 +655,43 @@ public static IObservable WhenAnyDynamic( /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The 3 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3 - ) + Expression> property1, + Expression> property2, + Expression> property3 + ) { return sender!.WhenAny(property1, property2, property3, - (c1, c2, c3) => - (c1.Value, c2.Value, c3.Value)); + (c1, c2, c3) => + (c1.Value, c2.Value, c3.Value)); } - + /// /// AOT-friendly tuple overloads using property names instead of expressions. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name ) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value) - , (v1,v2,v3) => - (v1,v2,v3) - ); + string property1Name, string property2Name, string property3Name ) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value) + , (v1,v2,v3) => + (v1,v2,v3) + ); } - + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -734,48 +704,46 @@ Expression> property3 /// The 1 property chain to reference. This will be a expression pointing to a end property or field. /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The 3 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3 + Expression> property1, + Expression> property2, + Expression> property3 , bool isDistinct) { return sender!.WhenAny(property1, property2, property3, - (c1, c2, c3) => - (c1.Value, c2.Value, c3.Value), - isDistinct); + (c1, c2, c3) => + (c1.Value, c2.Value, c3.Value), + isDistinct); } - + /// /// AOT-friendly tuple overloads using property names with distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name , + string property1Name, string property2Name, string property3Name , bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value) - , (v1,v2,v3) => - (v1,v2,v3) - ); + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value) + , (v1,v2,v3) => + (v1,v2,v3) + ); } - + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -788,45 +756,43 @@ Expression> property3 /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Func selector) { return sender!.WhenAny(property1, property2, property3, - (c1, c2, c3) => - selector(c1.Value, c2.Value, c3.Value)); + (c1, c2, c3) => + selector(c1.Value, c2.Value, c3.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -841,48 +807,46 @@ public static IObservable WhenAnyValue( /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, - (c1, c2, c3) => - selector(c1.Value, c2.Value, c3.Value), - isDistinct); + (c1, c2, c3) => + selector(c1.Value, c2.Value, c3.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -896,46 +860,44 @@ public static IObservable WhenAnyValue( /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Func, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Func, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - Func, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + Func, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -950,48 +912,46 @@ public static IObservable WhenAny( /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Func, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Func, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - Func, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + Func, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1005,27 +965,26 @@ public static IObservable WhenAny( /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Func, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Func, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1040,29 +999,28 @@ public static IObservable WhenAnyDynamic( /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Func, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - selector - ); - } - + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Func, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + selector + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -1075,48 +1033,46 @@ public static IObservable WhenAnyDynamic( /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The 4 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3,T4)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4 - ) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4 + ) { return sender!.WhenAny(property1, property2, property3, property4, - (c1, c2, c3, c4) => - (c1.Value, c2.Value, c3.Value, c4.Value)); + (c1, c2, c3, c4) => + (c1.Value, c2.Value, c3.Value, c4.Value)); } - + /// /// AOT-friendly tuple overloads using property names instead of expressions. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3,T4)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name, string property4Name ) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value), - o4.Select(x => x.Value) - , (v1,v2,v3,v4) => - (v1,v2,v3,v4) - ); + string property1Name, string property2Name, string property3Name, string property4Name ) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value), + o4.Select(x => x.Value) + , (v1,v2,v3,v4) => + (v1,v2,v3,v4) + ); } - + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -1130,51 +1086,49 @@ Expression> property4 /// The 2 property chain to reference. This will be a expression pointing to a end property or field. /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The 4 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3,T4)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4 + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4 , bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, - (c1, c2, c3, c4) => - (c1.Value, c2.Value, c3.Value, c4.Value), - isDistinct); + (c1, c2, c3, c4) => + (c1.Value, c2.Value, c3.Value, c4.Value), + isDistinct); } - + /// /// AOT-friendly tuple overloads using property names with distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3,T4)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name, string property4Name , + string property1Name, string property2Name, string property3Name, string property4Name , bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value), - o4.Select(x => x.Value) - , (v1,v2,v3,v4) => - (v1,v2,v3,v4) - ); - } - + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value), + o4.Select(x => x.Value) + , (v1,v2,v3,v4) => + (v1,v2,v3,v4) + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -1188,49 +1142,47 @@ Expression> property4 /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Func selector) { return sender!.WhenAny(property1, property2, property3, property4, - (c1, c2, c3, c4) => - selector(c1.Value, c2.Value, c3.Value, c4.Value)); + (c1, c2, c3, c4) => + selector(c1.Value, c2.Value, c3.Value, c4.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + string property4Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -1246,52 +1198,50 @@ public static IObservable WhenAnyValue( /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, - (c1, c2, c3, c4) => - selector(c1.Value, c2.Value, c3.Value, c4.Value), - isDistinct); + (c1, c2, c3, c4) => + selector(c1.Value, c2.Value, c3.Value, c4.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1306,50 +1256,48 @@ public static IObservable WhenAnyValue( /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - sender!.ObservableForProperty(property4, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + sender!.ObservableForProperty(property4, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - sender!.ObservableForProperty(property4Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + sender!.ObservableForProperty(property4Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1365,52 +1313,50 @@ public static IObservable WhenAny( /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - sender!.ObservableForProperty(property4, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + sender!.ObservableForProperty(property4, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - sender!.ObservableForProperty(property4Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + sender!.ObservableForProperty(property4Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1425,30 +1371,29 @@ public static IObservable WhenAny( /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1464,32 +1409,31 @@ public static IObservable WhenAnyDynamic( /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), - selector - ); - } - + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Func, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), + selector + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -1503,51 +1447,49 @@ public static IObservable WhenAnyDynamic( /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The 5 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3,T4,T5)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5 - ) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5 + ) { return sender!.WhenAny(property1, property2, property3, property4, property5, - (c1, c2, c3, c4, c5) => - (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value)); + (c1, c2, c3, c4, c5) => + (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value)); } - + /// /// AOT-friendly tuple overloads using property names instead of expressions. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3,T4,T5)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name, string property4Name, string property5Name ) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value), - o4.Select(x => x.Value), - o5.Select(x => x.Value) - , (v1,v2,v3,v4,v5) => - (v1,v2,v3,v4,v5) - ); - } - + string property1Name, string property2Name, string property3Name, string property4Name, string property5Name ) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value), + o4.Select(x => x.Value), + o5.Select(x => x.Value) + , (v1,v2,v3,v4,v5) => + (v1,v2,v3,v4,v5) + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -1562,54 +1504,52 @@ Expression> property5 /// The 3 property chain to reference. This will be a expression pointing to a end property or field. /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The 5 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3,T4,T5)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5 + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5 , bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, - (c1, c2, c3, c4, c5) => - (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value), - isDistinct); + (c1, c2, c3, c4, c5) => + (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value), + isDistinct); } - + /// /// AOT-friendly tuple overloads using property names with distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3,T4,T5)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name, string property4Name, string property5Name , + string property1Name, string property2Name, string property3Name, string property4Name, string property5Name , bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value), - o4.Select(x => x.Value), - o5.Select(x => x.Value) - , (v1,v2,v3,v4,v5) => - (v1,v2,v3,v4,v5) - ); - } - + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value), + o4.Select(x => x.Value), + o5.Select(x => x.Value) + , (v1,v2,v3,v4,v5) => + (v1,v2,v3,v4,v5) + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -1624,53 +1564,51 @@ Expression> property5 /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Func selector) { return sender!.WhenAny(property1, property2, property3, property4, property5, - (c1, c2, c3, c4, c5) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value)); + (c1, c2, c3, c4, c5) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -1687,56 +1625,54 @@ public static IObservable WhenAnyValue( /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, - (c1, c2, c3, c4, c5) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value), - isDistinct); + (c1, c2, c3, c4, c5) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1752,54 +1688,52 @@ public static IObservable WhenAnyValue( /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - sender!.ObservableForProperty(property4, false, false), - sender!.ObservableForProperty(property5, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + sender!.ObservableForProperty(property4, false, false), + sender!.ObservableForProperty(property5, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - sender!.ObservableForProperty(property4Name, false, false), - sender!.ObservableForProperty(property5Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + sender!.ObservableForProperty(property4Name, false, false), + sender!.ObservableForProperty(property5Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1816,56 +1750,54 @@ public static IObservable WhenAny( /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - sender!.ObservableForProperty(property4, false, false, isDistinct), - sender!.ObservableForProperty(property5, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + sender!.ObservableForProperty(property4, false, false, isDistinct), + sender!.ObservableForProperty(property5, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - sender!.ObservableForProperty(property4Name, false, false, isDistinct), - sender!.ObservableForProperty(property5Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + sender!.ObservableForProperty(property4Name, false, false, isDistinct), + sender!.ObservableForProperty(property5Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1881,33 +1813,32 @@ public static IObservable WhenAny( /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -1924,35 +1855,34 @@ public static IObservable WhenAnyDynamic( /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), - selector - ); - } - + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), + selector + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -1967,54 +1897,52 @@ public static IObservable WhenAnyDynamic( /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The 6 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3,T4,T5,T6)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6 - ) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6 + ) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, - (c1, c2, c3, c4, c5, c6) => - (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value)); + (c1, c2, c3, c4, c5, c6) => + (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value)); } - + /// /// AOT-friendly tuple overloads using property names instead of expressions. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3,T4,T5,T6)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name ) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value), - o4.Select(x => x.Value), - o5.Select(x => x.Value), - o6.Select(x => x.Value) - , (v1,v2,v3,v4,v5,v6) => - (v1,v2,v3,v4,v5,v6) - ); - } - + string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name ) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value), + o4.Select(x => x.Value), + o5.Select(x => x.Value), + o6.Select(x => x.Value) + , (v1,v2,v3,v4,v5,v6) => + (v1,v2,v3,v4,v5,v6) + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -2030,57 +1958,55 @@ Expression> property6 /// The 4 property chain to reference. This will be a expression pointing to a end property or field. /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The 6 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3,T4,T5,T6)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6 + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6 , bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, - (c1, c2, c3, c4, c5, c6) => - (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value), - isDistinct); + (c1, c2, c3, c4, c5, c6) => + (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value), + isDistinct); } - + /// /// AOT-friendly tuple overloads using property names with distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3,T4,T5,T6)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name , + string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name , bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value), - o4.Select(x => x.Value), - o5.Select(x => x.Value), - o6.Select(x => x.Value) - , (v1,v2,v3,v4,v5,v6) => - (v1,v2,v3,v4,v5,v6) - ); - } - + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value), + o4.Select(x => x.Value), + o5.Select(x => x.Value), + o6.Select(x => x.Value) + , (v1,v2,v3,v4,v5,v6) => + (v1,v2,v3,v4,v5,v6) + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -2096,57 +2022,55 @@ Expression> property6 /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Func selector) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, - (c1, c2, c3, c4, c5, c6) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value)); + (c1, c2, c3, c4, c5, c6) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -2164,60 +2088,58 @@ public static IObservable WhenAnyValue( /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, - (c1, c2, c3, c4, c5, c6) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value), - isDistinct); + (c1, c2, c3, c4, c5, c6) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -2234,58 +2156,56 @@ public static IObservable WhenAnyValue( /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - sender!.ObservableForProperty(property4, false, false), - sender!.ObservableForProperty(property5, false, false), - sender!.ObservableForProperty(property6, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + sender!.ObservableForProperty(property4, false, false), + sender!.ObservableForProperty(property5, false, false), + sender!.ObservableForProperty(property6, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - sender!.ObservableForProperty(property4Name, false, false), - sender!.ObservableForProperty(property5Name, false, false), - sender!.ObservableForProperty(property6Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + sender!.ObservableForProperty(property4Name, false, false), + sender!.ObservableForProperty(property5Name, false, false), + sender!.ObservableForProperty(property6Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -2303,60 +2223,58 @@ public static IObservable WhenAny( /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - sender!.ObservableForProperty(property4, false, false, isDistinct), - sender!.ObservableForProperty(property5, false, false, isDistinct), - sender!.ObservableForProperty(property6, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + sender!.ObservableForProperty(property4, false, false, isDistinct), + sender!.ObservableForProperty(property5, false, false, isDistinct), + sender!.ObservableForProperty(property6, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - sender!.ObservableForProperty(property4Name, false, false, isDistinct), - sender!.ObservableForProperty(property5Name, false, false, isDistinct), - sender!.ObservableForProperty(property6Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + sender!.ObservableForProperty(property4Name, false, false, isDistinct), + sender!.ObservableForProperty(property5Name, false, false, isDistinct), + sender!.ObservableForProperty(property6Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -2373,36 +2291,35 @@ public static IObservable WhenAny( /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -2420,38 +2337,37 @@ public static IObservable WhenAnyDynamic( /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), - selector - ); - } - + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), + selector + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -2467,57 +2383,55 @@ public static IObservable WhenAnyDynamic( /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The 7 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3,T4,T5,T6,T7)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7 - ) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7 + ) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, - (c1, c2, c3, c4, c5, c6, c7) => - (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value)); + (c1, c2, c3, c4, c5, c6, c7) => + (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value)); } - + /// /// AOT-friendly tuple overloads using property names instead of expressions. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3,T4,T5,T6,T7)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name ) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value), - o4.Select(x => x.Value), - o5.Select(x => x.Value), - o6.Select(x => x.Value), - o7.Select(x => x.Value) - , (v1,v2,v3,v4,v5,v6,v7) => - (v1,v2,v3,v4,v5,v6,v7) - ); - } - + string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name ) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value), + o4.Select(x => x.Value), + o5.Select(x => x.Value), + o6.Select(x => x.Value), + o7.Select(x => x.Value) + , (v1,v2,v3,v4,v5,v6,v7) => + (v1,v2,v3,v4,v5,v6,v7) + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -2534,60 +2448,58 @@ Expression> property7 /// The 5 property chain to reference. This will be a expression pointing to a end property or field. /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The 7 property chain to reference. This will be a expression pointing to a end property or field. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable<(T1,T2,T3,T4,T5,T6,T7)> WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7 + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7 , bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, - (c1, c2, c3, c4, c5, c6, c7) => - (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value), - isDistinct); + (c1, c2, c3, c4, c5, c6, c7) => + (c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value), + isDistinct); } - + /// /// AOT-friendly tuple overloads using property names with distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable<(T1,T2,T3,T4,T5,T6,T7)> WhenAnyValue( this TSender? sender, - string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name , + string property1Name, string property2Name, string property3Name, string property4Name, string property5Name, string property6Name, string property7Name , bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); - return Observable.CombineLatest( - o1.Select(x => x.Value), - o2.Select(x => x.Value), - o3.Select(x => x.Value), - o4.Select(x => x.Value), - o5.Select(x => x.Value), - o6.Select(x => x.Value), - o7.Select(x => x.Value) - , (v1,v2,v3,v4,v5,v6,v7) => - (v1,v2,v3,v4,v5,v6,v7) - ); - } - + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + return Observable.CombineLatest( + o1.Select(x => x.Value), + o2.Select(x => x.Value), + o3.Select(x => x.Value), + o4.Select(x => x.Value), + o5.Select(x => x.Value), + o6.Select(x => x.Value), + o7.Select(x => x.Value) + , (v1,v2,v3,v4,v5,v6,v7) => + (v1,v2,v3,v4,v5,v6,v7) + ); + } + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -2604,61 +2516,59 @@ Expression> property7 /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The 7 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Func selector) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, - (c1, c2, c3, c4, c5, c6, c7) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value)); + (c1, c2, c3, c4, c5, c6, c7) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -2677,64 +2587,62 @@ public static IObservable WhenAnyValueThe 6 property chain to reference. This will be a expression pointing to a end property or field. /// The 7 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, - (c1, c2, c3, c4, c5, c6, c7) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value), - isDistinct); + (c1, c2, c3, c4, c5, c6, c7) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -2752,62 +2660,60 @@ public static IObservable WhenAnyValueThe 6 property chain to reference. This will be a expression pointing to a end property or field. /// The 7 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - sender!.ObservableForProperty(property4, false, false), - sender!.ObservableForProperty(property5, false, false), - sender!.ObservableForProperty(property6, false, false), - sender!.ObservableForProperty(property7, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + sender!.ObservableForProperty(property4, false, false), + sender!.ObservableForProperty(property5, false, false), + sender!.ObservableForProperty(property6, false, false), + sender!.ObservableForProperty(property7, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - sender!.ObservableForProperty(property4Name, false, false), - sender!.ObservableForProperty(property5Name, false, false), - sender!.ObservableForProperty(property6Name, false, false), - sender!.ObservableForProperty(property7Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + sender!.ObservableForProperty(property4Name, false, false), + sender!.ObservableForProperty(property5Name, false, false), + sender!.ObservableForProperty(property6Name, false, false), + sender!.ObservableForProperty(property7Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -2826,64 +2732,62 @@ public static IObservable WhenAny( /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The 7 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - sender!.ObservableForProperty(property4, false, false, isDistinct), - sender!.ObservableForProperty(property5, false, false, isDistinct), - sender!.ObservableForProperty(property6, false, false, isDistinct), - sender!.ObservableForProperty(property7, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + sender!.ObservableForProperty(property4, false, false, isDistinct), + sender!.ObservableForProperty(property5, false, false, isDistinct), + sender!.ObservableForProperty(property6, false, false, isDistinct), + sender!.ObservableForProperty(property7, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - sender!.ObservableForProperty(property4Name, false, false, isDistinct), - sender!.ObservableForProperty(property5Name, false, false, isDistinct), - sender!.ObservableForProperty(property6Name, false, false, isDistinct), - sender!.ObservableForProperty(property7Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + sender!.ObservableForProperty(property4Name, false, false, isDistinct), + sender!.ObservableForProperty(property5Name, false, false, isDistinct), + sender!.ObservableForProperty(property6Name, false, false, isDistinct), + sender!.ObservableForProperty(property7Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -2901,39 +2805,38 @@ public static IObservable WhenAny( /// The 6 property chain to reference. This will be a expression pointing to a end property or field. /// The 7 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -2952,45 +2855,44 @@ public static IObservable WhenAnyDynamic( /// The 7 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), - selector - ); - } - - - - - + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), + selector + ); + } + + + + + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -3008,65 +2910,63 @@ public static IObservable WhenAnyDynamic( /// The 7 property chain to reference. This will be a expression pointing to a end property or field. /// The 8 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Func selector) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, - (c1, c2, c3, c4, c5, c6, c7, c8) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value)); + (c1, c2, c3, c4, c5, c6, c7, c8) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -3086,68 +2986,66 @@ public static IObservable WhenAnyValueThe 7 property chain to reference. This will be a expression pointing to a end property or field. /// The 8 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, - (c1, c2, c3, c4, c5, c6, c7, c8) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value), - isDistinct); + (c1, c2, c3, c4, c5, c6, c7, c8) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -3166,66 +3064,64 @@ public static IObservable WhenAnyValueThe 7 property chain to reference. This will be a expression pointing to a end property or field. /// The 8 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - sender!.ObservableForProperty(property4, false, false), - sender!.ObservableForProperty(property5, false, false), - sender!.ObservableForProperty(property6, false, false), - sender!.ObservableForProperty(property7, false, false), - sender!.ObservableForProperty(property8, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + sender!.ObservableForProperty(property4, false, false), + sender!.ObservableForProperty(property5, false, false), + sender!.ObservableForProperty(property6, false, false), + sender!.ObservableForProperty(property7, false, false), + sender!.ObservableForProperty(property8, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - sender!.ObservableForProperty(property4Name, false, false), - sender!.ObservableForProperty(property5Name, false, false), - sender!.ObservableForProperty(property6Name, false, false), - sender!.ObservableForProperty(property7Name, false, false), - sender!.ObservableForProperty(property8Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + sender!.ObservableForProperty(property4Name, false, false), + sender!.ObservableForProperty(property5Name, false, false), + sender!.ObservableForProperty(property6Name, false, false), + sender!.ObservableForProperty(property7Name, false, false), + sender!.ObservableForProperty(property8Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -3245,68 +3141,66 @@ public static IObservable WhenAny( /// The 7 property chain to reference. This will be a expression pointing to a end property or field. /// The 8 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - sender!.ObservableForProperty(property4, false, false, isDistinct), - sender!.ObservableForProperty(property5, false, false, isDistinct), - sender!.ObservableForProperty(property6, false, false, isDistinct), - sender!.ObservableForProperty(property7, false, false, isDistinct), - sender!.ObservableForProperty(property8, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + sender!.ObservableForProperty(property4, false, false, isDistinct), + sender!.ObservableForProperty(property5, false, false, isDistinct), + sender!.ObservableForProperty(property6, false, false, isDistinct), + sender!.ObservableForProperty(property7, false, false, isDistinct), + sender!.ObservableForProperty(property8, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - sender!.ObservableForProperty(property4Name, false, false, isDistinct), - sender!.ObservableForProperty(property5Name, false, false, isDistinct), - sender!.ObservableForProperty(property6Name, false, false, isDistinct), - sender!.ObservableForProperty(property7Name, false, false, isDistinct), - sender!.ObservableForProperty(property8Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + sender!.ObservableForProperty(property4Name, false, false, isDistinct), + sender!.ObservableForProperty(property5Name, false, false, isDistinct), + sender!.ObservableForProperty(property6Name, false, false, isDistinct), + sender!.ObservableForProperty(property7Name, false, false, isDistinct), + sender!.ObservableForProperty(property8Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -3325,42 +3219,41 @@ public static IObservable WhenAny( /// The 7 property chain to reference. This will be a expression pointing to a end property or field. /// The 8 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -3380,48 +3273,47 @@ public static IObservable WhenAnyDynamic( /// The 8 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), - selector - ); - } - - - - - + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), + selector + ); + } + + + + + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -3440,69 +3332,67 @@ public static IObservable WhenAnyDynamic( /// The 8 property chain to reference. This will be a expression pointing to a end property or field. /// The 9 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Func selector) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, property9, - (c1, c2, c3, c4, c5, c6, c7, c8, c9) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value)); + (c1, c2, c3, c4, c5, c6, c7, c8, c9) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8, - o9 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8, + o9 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -3523,72 +3413,70 @@ public static IObservable WhenAnyValueThe 8 property chain to reference. This will be a expression pointing to a end property or field. /// The 9 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, property9, - (c1, c2, c3, c4, c5, c6, c7, c8, c9) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value), - isDistinct); + (c1, c2, c3, c4, c5, c6, c7, c8, c9) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8, - o9 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8, + o9 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -3608,70 +3496,68 @@ public static IObservable WhenAnyValueThe 8 property chain to reference. This will be a expression pointing to a end property or field. /// The 9 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - sender!.ObservableForProperty(property4, false, false), - sender!.ObservableForProperty(property5, false, false), - sender!.ObservableForProperty(property6, false, false), - sender!.ObservableForProperty(property7, false, false), - sender!.ObservableForProperty(property8, false, false), - sender!.ObservableForProperty(property9, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + sender!.ObservableForProperty(property4, false, false), + sender!.ObservableForProperty(property5, false, false), + sender!.ObservableForProperty(property6, false, false), + sender!.ObservableForProperty(property7, false, false), + sender!.ObservableForProperty(property8, false, false), + sender!.ObservableForProperty(property9, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - sender!.ObservableForProperty(property4Name, false, false), - sender!.ObservableForProperty(property5Name, false, false), - sender!.ObservableForProperty(property6Name, false, false), - sender!.ObservableForProperty(property7Name, false, false), - sender!.ObservableForProperty(property8Name, false, false), - sender!.ObservableForProperty(property9Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + sender!.ObservableForProperty(property4Name, false, false), + sender!.ObservableForProperty(property5Name, false, false), + sender!.ObservableForProperty(property6Name, false, false), + sender!.ObservableForProperty(property7Name, false, false), + sender!.ObservableForProperty(property8Name, false, false), + sender!.ObservableForProperty(property9Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -3692,72 +3578,70 @@ public static IObservable WhenAnyThe 8 property chain to reference. This will be a expression pointing to a end property or field. /// The 9 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - sender!.ObservableForProperty(property4, false, false, isDistinct), - sender!.ObservableForProperty(property5, false, false, isDistinct), - sender!.ObservableForProperty(property6, false, false, isDistinct), - sender!.ObservableForProperty(property7, false, false, isDistinct), - sender!.ObservableForProperty(property8, false, false, isDistinct), - sender!.ObservableForProperty(property9, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + sender!.ObservableForProperty(property4, false, false, isDistinct), + sender!.ObservableForProperty(property5, false, false, isDistinct), + sender!.ObservableForProperty(property6, false, false, isDistinct), + sender!.ObservableForProperty(property7, false, false, isDistinct), + sender!.ObservableForProperty(property8, false, false, isDistinct), + sender!.ObservableForProperty(property9, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - sender!.ObservableForProperty(property4Name, false, false, isDistinct), - sender!.ObservableForProperty(property5Name, false, false, isDistinct), - sender!.ObservableForProperty(property6Name, false, false, isDistinct), - sender!.ObservableForProperty(property7Name, false, false, isDistinct), - sender!.ObservableForProperty(property8Name, false, false, isDistinct), - sender!.ObservableForProperty(property9Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + sender!.ObservableForProperty(property4Name, false, false, isDistinct), + sender!.ObservableForProperty(property5Name, false, false, isDistinct), + sender!.ObservableForProperty(property6Name, false, false, isDistinct), + sender!.ObservableForProperty(property7Name, false, false, isDistinct), + sender!.ObservableForProperty(property8Name, false, false, isDistinct), + sender!.ObservableForProperty(property9Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -3777,45 +3661,44 @@ public static IObservable WhenAnyThe 8 property chain to reference. This will be a expression pointing to a end property or field. /// The 9 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Expression? property9, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property9, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Expression? property9, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property9, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -3836,51 +3719,50 @@ public static IObservable WhenAnyDynamic( /// The 9 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Expression? property9, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property9, false, false, isDistinct), - selector - ); - } - - - - - + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Expression? property9, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property9, false, false, isDistinct), + selector + ); + } + + + + + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -3900,73 +3782,71 @@ public static IObservable WhenAnyDynamic( /// The 9 property chain to reference. This will be a expression pointing to a end property or field. /// The 10 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Func selector) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, property9, property10, - (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value)); + (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8, - o9, - o10 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8, + o9, + o10 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -3988,76 +3868,74 @@ public static IObservable WhenAnyValueThe 9 property chain to reference. This will be a expression pointing to a end property or field. /// The 10 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, property9, property10, - (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value), - isDistinct); + (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8, - o9, - o10 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8, + o9, + o10 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -4078,74 +3956,72 @@ public static IObservable WhenAnyValueThe 9 property chain to reference. This will be a expression pointing to a end property or field. /// The 10 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - sender!.ObservableForProperty(property4, false, false), - sender!.ObservableForProperty(property5, false, false), - sender!.ObservableForProperty(property6, false, false), - sender!.ObservableForProperty(property7, false, false), - sender!.ObservableForProperty(property8, false, false), - sender!.ObservableForProperty(property9, false, false), - sender!.ObservableForProperty(property10, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + sender!.ObservableForProperty(property4, false, false), + sender!.ObservableForProperty(property5, false, false), + sender!.ObservableForProperty(property6, false, false), + sender!.ObservableForProperty(property7, false, false), + sender!.ObservableForProperty(property8, false, false), + sender!.ObservableForProperty(property9, false, false), + sender!.ObservableForProperty(property10, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - sender!.ObservableForProperty(property4Name, false, false), - sender!.ObservableForProperty(property5Name, false, false), - sender!.ObservableForProperty(property6Name, false, false), - sender!.ObservableForProperty(property7Name, false, false), - sender!.ObservableForProperty(property8Name, false, false), - sender!.ObservableForProperty(property9Name, false, false), - sender!.ObservableForProperty(property10Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + sender!.ObservableForProperty(property4Name, false, false), + sender!.ObservableForProperty(property5Name, false, false), + sender!.ObservableForProperty(property6Name, false, false), + sender!.ObservableForProperty(property7Name, false, false), + sender!.ObservableForProperty(property8Name, false, false), + sender!.ObservableForProperty(property9Name, false, false), + sender!.ObservableForProperty(property10Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -4167,76 +4043,74 @@ public static IObservable WhenAnyThe 9 property chain to reference. This will be a expression pointing to a end property or field. /// The 10 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - sender!.ObservableForProperty(property4, false, false, isDistinct), - sender!.ObservableForProperty(property5, false, false, isDistinct), - sender!.ObservableForProperty(property6, false, false, isDistinct), - sender!.ObservableForProperty(property7, false, false, isDistinct), - sender!.ObservableForProperty(property8, false, false, isDistinct), - sender!.ObservableForProperty(property9, false, false, isDistinct), - sender!.ObservableForProperty(property10, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + sender!.ObservableForProperty(property4, false, false, isDistinct), + sender!.ObservableForProperty(property5, false, false, isDistinct), + sender!.ObservableForProperty(property6, false, false, isDistinct), + sender!.ObservableForProperty(property7, false, false, isDistinct), + sender!.ObservableForProperty(property8, false, false, isDistinct), + sender!.ObservableForProperty(property9, false, false, isDistinct), + sender!.ObservableForProperty(property10, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - sender!.ObservableForProperty(property4Name, false, false, isDistinct), - sender!.ObservableForProperty(property5Name, false, false, isDistinct), - sender!.ObservableForProperty(property6Name, false, false, isDistinct), - sender!.ObservableForProperty(property7Name, false, false, isDistinct), - sender!.ObservableForProperty(property8Name, false, false, isDistinct), - sender!.ObservableForProperty(property9Name, false, false, isDistinct), - sender!.ObservableForProperty(property10Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + sender!.ObservableForProperty(property4Name, false, false, isDistinct), + sender!.ObservableForProperty(property5Name, false, false, isDistinct), + sender!.ObservableForProperty(property6Name, false, false, isDistinct), + sender!.ObservableForProperty(property7Name, false, false, isDistinct), + sender!.ObservableForProperty(property8Name, false, false, isDistinct), + sender!.ObservableForProperty(property9Name, false, false, isDistinct), + sender!.ObservableForProperty(property10Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -4257,48 +4131,47 @@ public static IObservable WhenAnyThe 9 property chain to reference. This will be a expression pointing to a end property or field. /// The 10 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Expression? property9, - Expression? property10, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property9, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property10, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Expression? property9, + Expression? property10, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property9, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property10, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -4320,54 +4193,53 @@ public static IObservable WhenAnyDynamic( /// The 10 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Expression? property9, - Expression? property10, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property9, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property10, false, false, isDistinct), - selector - ); - } - - - - - + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Expression? property9, + Expression? property10, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property9, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property10, false, false, isDistinct), + selector + ); + } + + + + + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -4388,77 +4260,75 @@ public static IObservable WhenAnyDynamic( /// The 10 property chain to reference. This will be a expression pointing to a end property or field. /// The 11 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Expression> property11, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Expression> property11, + Func selector) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, property9, property10, property11, - (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value, c11.Value)); + (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value, c11.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - string property11Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o11 = sender!.ObservableForProperty(property11Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8, - o9, - o10, - o11 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + string property11Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o11 = sender!.ObservableForProperty(property11Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8, + o9, + o10, + o11 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -4481,80 +4351,78 @@ public static IObservable WhenAnyValueThe 10 property chain to reference. This will be a expression pointing to a end property or field. /// The 11 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Expression> property11, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Expression> property11, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, property9, property10, property11, - (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value, c11.Value), - isDistinct); + (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value, c11.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - string property11Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + string property11Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o11 = sender!.ObservableForProperty(property11Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8, - o9, - o10, - o11 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o11 = sender!.ObservableForProperty(property11Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8, + o9, + o10, + o11 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -4576,78 +4444,76 @@ public static IObservable WhenAnyValueThe 10 property chain to reference. This will be a expression pointing to a end property or field. /// The 11 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Expression> property11, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - sender!.ObservableForProperty(property4, false, false), - sender!.ObservableForProperty(property5, false, false), - sender!.ObservableForProperty(property6, false, false), - sender!.ObservableForProperty(property7, false, false), - sender!.ObservableForProperty(property8, false, false), - sender!.ObservableForProperty(property9, false, false), - sender!.ObservableForProperty(property10, false, false), - sender!.ObservableForProperty(property11, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Expression> property11, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + sender!.ObservableForProperty(property4, false, false), + sender!.ObservableForProperty(property5, false, false), + sender!.ObservableForProperty(property6, false, false), + sender!.ObservableForProperty(property7, false, false), + sender!.ObservableForProperty(property8, false, false), + sender!.ObservableForProperty(property9, false, false), + sender!.ObservableForProperty(property10, false, false), + sender!.ObservableForProperty(property11, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - string property11Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - sender!.ObservableForProperty(property4Name, false, false), - sender!.ObservableForProperty(property5Name, false, false), - sender!.ObservableForProperty(property6Name, false, false), - sender!.ObservableForProperty(property7Name, false, false), - sender!.ObservableForProperty(property8Name, false, false), - sender!.ObservableForProperty(property9Name, false, false), - sender!.ObservableForProperty(property10Name, false, false), - sender!.ObservableForProperty(property11Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + string property11Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + sender!.ObservableForProperty(property4Name, false, false), + sender!.ObservableForProperty(property5Name, false, false), + sender!.ObservableForProperty(property6Name, false, false), + sender!.ObservableForProperty(property7Name, false, false), + sender!.ObservableForProperty(property8Name, false, false), + sender!.ObservableForProperty(property9Name, false, false), + sender!.ObservableForProperty(property10Name, false, false), + sender!.ObservableForProperty(property11Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -4670,80 +4536,78 @@ public static IObservable WhenAnyThe 10 property chain to reference. This will be a expression pointing to a end property or field. /// The 11 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Expression> property11, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - sender!.ObservableForProperty(property4, false, false, isDistinct), - sender!.ObservableForProperty(property5, false, false, isDistinct), - sender!.ObservableForProperty(property6, false, false, isDistinct), - sender!.ObservableForProperty(property7, false, false, isDistinct), - sender!.ObservableForProperty(property8, false, false, isDistinct), - sender!.ObservableForProperty(property9, false, false, isDistinct), - sender!.ObservableForProperty(property10, false, false, isDistinct), - sender!.ObservableForProperty(property11, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Expression> property11, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + sender!.ObservableForProperty(property4, false, false, isDistinct), + sender!.ObservableForProperty(property5, false, false, isDistinct), + sender!.ObservableForProperty(property6, false, false, isDistinct), + sender!.ObservableForProperty(property7, false, false, isDistinct), + sender!.ObservableForProperty(property8, false, false, isDistinct), + sender!.ObservableForProperty(property9, false, false, isDistinct), + sender!.ObservableForProperty(property10, false, false, isDistinct), + sender!.ObservableForProperty(property11, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - string property11Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - sender!.ObservableForProperty(property4Name, false, false, isDistinct), - sender!.ObservableForProperty(property5Name, false, false, isDistinct), - sender!.ObservableForProperty(property6Name, false, false, isDistinct), - sender!.ObservableForProperty(property7Name, false, false, isDistinct), - sender!.ObservableForProperty(property8Name, false, false, isDistinct), - sender!.ObservableForProperty(property9Name, false, false, isDistinct), - sender!.ObservableForProperty(property10Name, false, false, isDistinct), - sender!.ObservableForProperty(property11Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + string property11Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + sender!.ObservableForProperty(property4Name, false, false, isDistinct), + sender!.ObservableForProperty(property5Name, false, false, isDistinct), + sender!.ObservableForProperty(property6Name, false, false, isDistinct), + sender!.ObservableForProperty(property7Name, false, false, isDistinct), + sender!.ObservableForProperty(property8Name, false, false, isDistinct), + sender!.ObservableForProperty(property9Name, false, false, isDistinct), + sender!.ObservableForProperty(property10Name, false, false, isDistinct), + sender!.ObservableForProperty(property11Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -4765,51 +4629,50 @@ public static IObservable WhenAnyThe 10 property chain to reference. This will be a expression pointing to a end property or field. /// The 11 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Expression? property9, - Expression? property10, - Expression? property11, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property9, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property10, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property11, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Expression? property9, + Expression? property10, + Expression? property11, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property9, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property10, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property11, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -4832,57 +4695,56 @@ public static IObservable WhenAnyDynamic( /// The 11 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Expression? property9, - Expression? property10, - Expression? property11, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property9, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property10, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property11, false, false, isDistinct), - selector - ); - } - - - - - + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Expression? property9, + Expression? property10, + Expression? property11, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property9, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property10, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property11, false, false, isDistinct), + selector + ); + } + + + + + /// /// WhenAnyValue allows you to observe whenever the value of one or more /// properties on an object have changed, providing an initial value when @@ -4904,81 +4766,79 @@ public static IObservable WhenAnyDynamic( /// The 11 property chain to reference. This will be a expression pointing to a end property or field. /// The 12 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Expression> property11, - Expression> property12, - Func selector) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Expression> property11, + Expression> property12, + Func selector) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, property9, property10, property11, property12, - (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value, c11.Value, c12.Value)); + (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value, c11.Value, c12.Value)); } /// /// AOT-friendly selector overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - string property11Name, - string property12Name, - Func selector) - { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o11 = sender!.ObservableForProperty(property11Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - var o12 = sender!.ObservableForProperty(property12Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8, - o9, - o10, - o11, - o12 - , selector); - } + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + string property11Name, + string property12Name, + Func selector) + { + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o11 = sender!.ObservableForProperty(property11Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + var o12 = sender!.ObservableForProperty(property12Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8, + o9, + o10, + o11, + o12 + , selector); + } /// /// WhenAnyValue allows you to observe whenever the value of one or more @@ -5002,84 +4862,82 @@ public static IObservable WhenAnyValueThe 11 property chain to reference. This will be a expression pointing to a end property or field. /// The 12 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif public static IObservable WhenAnyValue( this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Expression> property11, - Expression> property12, - Func selector, - bool isDistinct) + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Expression> property11, + Expression> property12, + Func selector, + bool isDistinct) { return sender!.WhenAny(property1, property2, property3, property4, property5, property6, property7, property8, property9, property10, property11, property12, - (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12) => - selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value, c11.Value, c12.Value), - isDistinct); + (c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12) => + selector(c1.Value, c2.Value, c3.Value, c4.Value, c5.Value, c6.Value, c7.Value, c8.Value, c9.Value, c10.Value, c11.Value, c12.Value), + isDistinct); } /// /// AOT-friendly selector overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAnyValue( this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - string property11Name, - string property12Name, - Func selector, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + string property11Name, + string property12Name, + Func selector, bool isDistinct) { - var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o11 = sender!.ObservableForProperty(property11Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - var o12 = sender!.ObservableForProperty(property12Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); - return Observable.CombineLatest( - o1, - o2, - o3, - o4, - o5, - o6, - o7, - o8, - o9, - o10, - o11, - o12 - , selector); - } + var o1 = sender!.ObservableForProperty(property1Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o2 = sender!.ObservableForProperty(property2Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o3 = sender!.ObservableForProperty(property3Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o4 = sender!.ObservableForProperty(property4Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o5 = sender!.ObservableForProperty(property5Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o6 = sender!.ObservableForProperty(property6Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o7 = sender!.ObservableForProperty(property7Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o8 = sender!.ObservableForProperty(property8Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o9 = sender!.ObservableForProperty(property9Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o10 = sender!.ObservableForProperty(property10Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o11 = sender!.ObservableForProperty(property11Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + var o12 = sender!.ObservableForProperty(property12Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + return Observable.CombineLatest( + o1, + o2, + o3, + o4, + o5, + o6, + o7, + o8, + o9, + o10, + o11, + o12 + , selector); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -5102,82 +4960,80 @@ public static IObservable WhenAnyValueThe 11 property chain to reference. This will be a expression pointing to a end property or field. /// The 12 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Expression> property11, - Expression> property12, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false), - sender!.ObservableForProperty(property2, false, false), - sender!.ObservableForProperty(property3, false, false), - sender!.ObservableForProperty(property4, false, false), - sender!.ObservableForProperty(property5, false, false), - sender!.ObservableForProperty(property6, false, false), - sender!.ObservableForProperty(property7, false, false), - sender!.ObservableForProperty(property8, false, false), - sender!.ObservableForProperty(property9, false, false), - sender!.ObservableForProperty(property10, false, false), - sender!.ObservableForProperty(property11, false, false), - sender!.ObservableForProperty(property12, false, false), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Expression> property11, + Expression> property12, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false), + sender!.ObservableForProperty(property2, false, false), + sender!.ObservableForProperty(property3, false, false), + sender!.ObservableForProperty(property4, false, false), + sender!.ObservableForProperty(property5, false, false), + sender!.ObservableForProperty(property6, false, false), + sender!.ObservableForProperty(property7, false, false), + sender!.ObservableForProperty(property8, false, false), + sender!.ObservableForProperty(property9, false, false), + sender!.ObservableForProperty(property10, false, false), + sender!.ObservableForProperty(property11, false, false), + sender!.ObservableForProperty(property12, false, false), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - string property11Name, - string property12Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false), - sender!.ObservableForProperty(property2Name, false, false), - sender!.ObservableForProperty(property3Name, false, false), - sender!.ObservableForProperty(property4Name, false, false), - sender!.ObservableForProperty(property5Name, false, false), - sender!.ObservableForProperty(property6Name, false, false), - sender!.ObservableForProperty(property7Name, false, false), - sender!.ObservableForProperty(property8Name, false, false), - sender!.ObservableForProperty(property9Name, false, false), - sender!.ObservableForProperty(property10Name, false, false), - sender!.ObservableForProperty(property11Name, false, false), - sender!.ObservableForProperty(property12Name, false, false), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + string property11Name, + string property12Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false), + sender!.ObservableForProperty(property2Name, false, false), + sender!.ObservableForProperty(property3Name, false, false), + sender!.ObservableForProperty(property4Name, false, false), + sender!.ObservableForProperty(property5Name, false, false), + sender!.ObservableForProperty(property6Name, false, false), + sender!.ObservableForProperty(property7Name, false, false), + sender!.ObservableForProperty(property8Name, false, false), + sender!.ObservableForProperty(property9Name, false, false), + sender!.ObservableForProperty(property10Name, false, false), + sender!.ObservableForProperty(property11Name, false, false), + sender!.ObservableForProperty(property12Name, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -5201,84 +5057,82 @@ public static IObservable WhenAnyThe 11 property chain to reference. This will be a expression pointing to a end property or field. /// The 12 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAny( - this TSender? sender, - Expression> property1, - Expression> property2, - Expression> property3, - Expression> property4, - Expression> property5, - Expression> property6, - Expression> property7, - Expression> property8, - Expression> property9, - Expression> property10, - Expression> property11, - Expression> property12, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1, false, false, isDistinct), - sender!.ObservableForProperty(property2, false, false, isDistinct), - sender!.ObservableForProperty(property3, false, false, isDistinct), - sender!.ObservableForProperty(property4, false, false, isDistinct), - sender!.ObservableForProperty(property5, false, false, isDistinct), - sender!.ObservableForProperty(property6, false, false, isDistinct), - sender!.ObservableForProperty(property7, false, false, isDistinct), - sender!.ObservableForProperty(property8, false, false, isDistinct), - sender!.ObservableForProperty(property9, false, false, isDistinct), - sender!.ObservableForProperty(property10, false, false, isDistinct), - sender!.ObservableForProperty(property11, false, false, isDistinct), - sender!.ObservableForProperty(property12, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression> property1, + Expression> property2, + Expression> property3, + Expression> property4, + Expression> property5, + Expression> property6, + Expression> property7, + Expression> property8, + Expression> property9, + Expression> property10, + Expression> property11, + Expression> property12, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1, false, false, isDistinct), + sender!.ObservableForProperty(property2, false, false, isDistinct), + sender!.ObservableForProperty(property3, false, false, isDistinct), + sender!.ObservableForProperty(property4, false, false, isDistinct), + sender!.ObservableForProperty(property5, false, false, isDistinct), + sender!.ObservableForProperty(property6, false, false, isDistinct), + sender!.ObservableForProperty(property7, false, false, isDistinct), + sender!.ObservableForProperty(property8, false, false, isDistinct), + sender!.ObservableForProperty(property9, false, false, isDistinct), + sender!.ObservableForProperty(property10, false, false, isDistinct), + sender!.ObservableForProperty(property11, false, false, isDistinct), + sender!.ObservableForProperty(property12, false, false, isDistinct), + selector + ); + } /// /// AOT-friendly WhenAny overload using property names and distinct option. /// #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif public static IObservable WhenAny( - this TSender? sender, - string property1Name, - string property2Name, - string property3Name, - string property4Name, - string property5Name, - string property6Name, - string property7Name, - string property8Name, - string property9Name, - string property10Name, - string property11Name, - string property12Name, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - sender!.ObservableForProperty(property1Name, false, false, isDistinct), - sender!.ObservableForProperty(property2Name, false, false, isDistinct), - sender!.ObservableForProperty(property3Name, false, false, isDistinct), - sender!.ObservableForProperty(property4Name, false, false, isDistinct), - sender!.ObservableForProperty(property5Name, false, false, isDistinct), - sender!.ObservableForProperty(property6Name, false, false, isDistinct), - sender!.ObservableForProperty(property7Name, false, false, isDistinct), - sender!.ObservableForProperty(property8Name, false, false, isDistinct), - sender!.ObservableForProperty(property9Name, false, false, isDistinct), - sender!.ObservableForProperty(property10Name, false, false, isDistinct), - sender!.ObservableForProperty(property11Name, false, false, isDistinct), - sender!.ObservableForProperty(property12Name, false, false, isDistinct), - selector - ); - } + this TSender? sender, + string property1Name, + string property2Name, + string property3Name, + string property4Name, + string property5Name, + string property6Name, + string property7Name, + string property8Name, + string property9Name, + string property10Name, + string property11Name, + string property12Name, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + sender!.ObservableForProperty(property1Name, false, false, isDistinct), + sender!.ObservableForProperty(property2Name, false, false, isDistinct), + sender!.ObservableForProperty(property3Name, false, false, isDistinct), + sender!.ObservableForProperty(property4Name, false, false, isDistinct), + sender!.ObservableForProperty(property5Name, false, false, isDistinct), + sender!.ObservableForProperty(property6Name, false, false, isDistinct), + sender!.ObservableForProperty(property7Name, false, false, isDistinct), + sender!.ObservableForProperty(property8Name, false, false, isDistinct), + sender!.ObservableForProperty(property9Name, false, false, isDistinct), + sender!.ObservableForProperty(property10Name, false, false, isDistinct), + sender!.ObservableForProperty(property11Name, false, false, isDistinct), + sender!.ObservableForProperty(property12Name, false, false, isDistinct), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -5301,54 +5155,53 @@ public static IObservable WhenAnyThe 11 property chain to reference. This will be a expression pointing to a end property or field. /// The 12 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Expression? property9, - Expression? property10, - Expression? property11, - Expression? property12, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property9, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property10, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property11, false, false), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property12, false, false), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Expression? property9, + Expression? property10, + Expression? property11, + Expression? property12, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property9, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property10, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property11, false, false), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property12, false, false), + selector + ); + } /// /// WhenAny allows you to observe whenever one or more properties on an @@ -5372,55 +5225,54 @@ public static IObservable WhenAnyDynamic( /// The 12 property chain to reference. This will be a expression pointing to a end property or field. /// The selector which will determine the final value from the properties. /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif public static IObservable WhenAnyDynamic( - this TSender? sender, - Expression? property1, - Expression? property2, - Expression? property3, - Expression? property4, - Expression? property5, - Expression? property6, - Expression? property7, - Expression? property8, - Expression? property9, - Expression? property10, - Expression? property11, - Expression? property12, - Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, - bool isDistinct) - { - return Observable.CombineLatest( - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property9, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property10, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property11, false, false, isDistinct), - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property12, false, false, isDistinct), - selector - ); - } + this TSender? sender, + Expression? property1, + Expression? property2, + Expression? property3, + Expression? property4, + Expression? property5, + Expression? property6, + Expression? property7, + Expression? property8, + Expression? property9, + Expression? property10, + Expression? property11, + Expression? property12, + Func, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, IObservedChange, TRet> selector, + bool isDistinct) + { + return Observable.CombineLatest( + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property1, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property2, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property3, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property4, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property5, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property6, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property7, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property8, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property9, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property10, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property11, false, false, isDistinct), + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property12, false, false, isDistinct), + selector + ); + } } /// A mixin which provides support for subscribing to observable properties. @@ -5429,9 +5281,8 @@ public static class WhenAnyObservableMixin /// Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value. /// The object where the property chain starts. /// The first observable to observe. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1) where TSender : class @@ -5443,30 +5294,28 @@ public static IObservable WhenAnyObservable(this TSender? s /// The object where the property chain starts. /// The 1 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 2 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2) where TSender : class { return sender.WhenAny(obs1, obs2, (o1, o2) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. /// The 1 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 2 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 3 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, (o1, o2, o3) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5474,15 +5323,14 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 2 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 3 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 4 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3, Expression?>> obs4) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, (o1, o2, o3, o4) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5491,15 +5339,14 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 3 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 4 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 5 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3, Expression?>> obs4, Expression?>> obs5) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, (o1, o2, o3, o4, o5) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5509,15 +5356,14 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 4 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 5 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 6 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3, Expression?>> obs4, Expression?>> obs5, Expression?>> obs6) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, (o1, o2, o3, o4, o5, o6) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5528,15 +5374,14 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 5 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 6 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 7 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3, Expression?>> obs4, Expression?>> obs5, Expression?>> obs6, Expression?>> obs7) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, (o1, o2, o3, o4, o5, o6, o7) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5548,15 +5393,14 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 6 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 7 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 8 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3, Expression?>> obs4, Expression?>> obs5, Expression?>> obs6, Expression?>> obs7, Expression?>> obs8) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, (o1, o2, o3, o4, o5, o6, o7, o8) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5569,15 +5413,14 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 7 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 8 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 9 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3, Expression?>> obs4, Expression?>> obs5, Expression?>> obs6, Expression?>> obs7, Expression?>> obs8, Expression?>> obs9) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, obs9, (o1, o2, o3, o4, o5, o6, o7, o8, o9) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull(), o9.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5591,15 +5434,14 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 8 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 9 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 10 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3, Expression?>> obs4, Expression?>> obs5, Expression?>> obs6, Expression?>> obs7, Expression?>> obs8, Expression?>> obs9, Expression?>> obs10) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, obs9, obs10, (o1, o2, o3, o4, o5, o6, o7, o8, o9, o10) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull(), o9.Value!.EmptyIfNull(), o10.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5614,15 +5456,14 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 9 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 10 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 11 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3, Expression?>> obs4, Expression?>> obs5, Expression?>> obs6, Expression?>> obs7, Expression?>> obs8, Expression?>> obs9, Expression?>> obs10, Expression?>> obs11) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, obs9, obs10, obs11, (o1, o2, o3, o4, o5, o6, o7, o8, o9, o10, o11) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull(), o9.Value!.EmptyIfNull(), o10.Value!.EmptyIfNull(), o11.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5638,15 +5479,14 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 10 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 11 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. /// The 12 property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] + #if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1, Expression?>> obs2, Expression?>> obs3, Expression?>> obs4, Expression?>> obs5, Expression?>> obs6, Expression?>> obs7, Expression?>> obs8, Expression?>> obs9, Expression?>> obs10, Expression?>> obs11, Expression?>> obs12) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, obs9, obs10, obs11, obs12, (o1, o2, o3, o4, o5, o6, o7, o8, o9, o10, o11, o12) => new[] {o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull(), o9.Value!.EmptyIfNull(), o10.Value!.EmptyIfNull(), o11.Value!.EmptyIfNull(), o12.Value!.EmptyIfNull()}) - .Select(x => x.Merge()).Switch(); + .Select(x => x.Merge()).Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. @@ -5654,18 +5494,17 @@ public static IObservable WhenAnyObservable(this TSender? s /// The 1 property chain to reference. /// The 2 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, (o1, o2) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5673,19 +5512,18 @@ public static IObservable WhenAnyObservable(this TSe /// The 2 property chain to reference. /// The 3 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, (o1, o2, o3) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5694,20 +5532,19 @@ public static IObservable WhenAnyObservable(this /// The 3 property chain to reference. /// The 4 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Expression?>> obs4, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Expression?>> obs4, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, (o1, o2, o3, o4) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5717,21 +5554,20 @@ public static IObservable WhenAnyObservable(th /// The 4 property chain to reference. /// The 5 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Expression?>> obs4, - Expression?>> obs5, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Expression?>> obs4, + Expression?>> obs5, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, (o1, o2, o3, o4, o5) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5742,22 +5578,21 @@ public static IObservable WhenAnyObservable /// The 5 property chain to reference. /// The 6 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Expression?>> obs4, - Expression?>> obs5, - Expression?>> obs6, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Expression?>> obs4, + Expression?>> obs5, + Expression?>> obs6, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, (o1, o2, o3, o4, o5, o6) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5769,23 +5604,22 @@ public static IObservable WhenAnyObservableThe 6 property chain to reference. /// The 7 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Expression?>> obs4, - Expression?>> obs5, - Expression?>> obs6, - Expression?>> obs7, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Expression?>> obs4, + Expression?>> obs5, + Expression?>> obs6, + Expression?>> obs7, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, (o1, o2, o3, o4, o5, o6, o7) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5798,24 +5632,23 @@ public static IObservable WhenAnyObservableThe 7 property chain to reference. /// The 8 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Expression?>> obs4, - Expression?>> obs5, - Expression?>> obs6, - Expression?>> obs7, - Expression?>> obs8, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Expression?>> obs4, + Expression?>> obs5, + Expression?>> obs6, + Expression?>> obs7, + Expression?>> obs8, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, (o1, o2, o3, o4, o5, o6, o7, o8) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5829,25 +5662,24 @@ public static IObservable WhenAnyObservableThe 8 property chain to reference. /// The 9 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Expression?>> obs4, - Expression?>> obs5, - Expression?>> obs6, - Expression?>> obs7, - Expression?>> obs8, - Expression?>> obs9, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Expression?>> obs4, + Expression?>> obs5, + Expression?>> obs6, + Expression?>> obs7, + Expression?>> obs8, + Expression?>> obs9, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, obs9, (o1, o2, o3, o4, o5, o6, o7, o8, o9) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull(), o9.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5862,26 +5694,25 @@ public static IObservable WhenAnyObservableThe 9 property chain to reference. /// The 10 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Expression?>> obs4, - Expression?>> obs5, - Expression?>> obs6, - Expression?>> obs7, - Expression?>> obs8, - Expression?>> obs9, - Expression?>> obs10, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Expression?>> obs4, + Expression?>> obs5, + Expression?>> obs6, + Expression?>> obs7, + Expression?>> obs8, + Expression?>> obs9, + Expression?>> obs10, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, obs9, obs10, (o1, o2, o3, o4, o5, o6, o7, o8, o9, o10) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull(), o9.Value!.EmptyIfNull(), o10.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5897,27 +5728,26 @@ public static IObservable WhenAnyObservableThe 10 property chain to reference. /// The 11 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Expression?>> obs4, - Expression?>> obs5, - Expression?>> obs6, - Expression?>> obs7, - Expression?>> obs8, - Expression?>> obs9, - Expression?>> obs10, - Expression?>> obs11, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Expression?>> obs4, + Expression?>> obs5, + Expression?>> obs6, + Expression?>> obs7, + Expression?>> obs8, + Expression?>> obs9, + Expression?>> obs10, + Expression?>> obs11, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, obs9, obs10, obs11, (o1, o2, o3, o4, o5, o6, o7, o8, o9, o10, o11) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull(), o9.Value!.EmptyIfNull(), o10.Value!.EmptyIfNull(), o11.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } /// Monitor a property that is an observable, and subscribe to the most recent emitted value. /// The object where the property chain starts. @@ -5934,28 +5764,27 @@ public static IObservable WhenAnyObservableThe 11 property chain to reference. /// The 12 property chain to reference. /// The selector which will determine the final value from the properties. This must be an observable. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] #endif public static IObservable WhenAnyObservable(this TSender? sender, - Expression?>> obs1, - Expression?>> obs2, - Expression?>> obs3, - Expression?>> obs4, - Expression?>> obs5, - Expression?>> obs6, - Expression?>> obs7, - Expression?>> obs8, - Expression?>> obs9, - Expression?>> obs10, - Expression?>> obs11, - Expression?>> obs12, - Func selector) + Expression?>> obs1, + Expression?>> obs2, + Expression?>> obs3, + Expression?>> obs4, + Expression?>> obs5, + Expression?>> obs6, + Expression?>> obs7, + Expression?>> obs8, + Expression?>> obs9, + Expression?>> obs10, + Expression?>> obs11, + Expression?>> obs12, + Func selector) where TSender : class { return sender.WhenAny(obs1, obs2, obs3, obs4, obs5, obs6, obs7, obs8, obs9, obs10, obs11, obs12, (o1, o2, o3, o4, o5, o6, o7, o8, o9, o10, o11, o12) => Observable.CombineLatest(o1.Value!.EmptyIfNull(), o2.Value!.EmptyIfNull(), o3.Value!.EmptyIfNull(), o4.Value!.EmptyIfNull(), o5.Value!.EmptyIfNull(), o6.Value!.EmptyIfNull(), o7.Value!.EmptyIfNull(), o8.Value!.EmptyIfNull(), o9.Value!.EmptyIfNull(), o10.Value!.EmptyIfNull(), o11.Value!.EmptyIfNull(), o12.Value!.EmptyIfNull(), selector)) - .Switch(); + .Switch(); } } @@ -5965,4 +5794,4 @@ public static IObservable EmptyIfNull(this IObservable @this) { return @this ?? Observable.Empty(); } -} \ No newline at end of file +} diff --git a/src/ReactiveUI/VariadicTemplates.tt b/src/ReactiveUI/VariadicTemplates.tt index fe5b365658..9b344dad54 100644 --- a/src/ReactiveUI/VariadicTemplates.tt +++ b/src/ReactiveUI/VariadicTemplates.tt @@ -30,595 +30,576 @@ using System.Diagnostics.CodeAnalysis; // except for this section int maxFuncLength = 12; -#> -namespace ReactiveUI +void EmitWhenAnyValueRequiresUnreferencedCode() { - /// Extension methods associated with the WhenAny/WhenAnyValue classes. - public static class WhenAnyMixin - { - /// - /// WhenAnyValue allows you to observe whenever the value of a - /// property on an object has changed, providing an initial value when - /// the Observable is set up, unlike ObservableForProperty(). Use this - /// method in constructors to set up bindings between properties that also - /// need an initial setup. - /// - /// The object where the property chain starts. - /// The first property chain to reference. This will be a expression pointing to a end property or field. +#> #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAnyValue creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif - public static IObservable WhenAnyValue( - this TSender? sender, - Expression> property1) - { - return sender!.WhenAny(property1, (IObservedChange c1) => c1.Value); - } - - /// - /// AOT-friendly overload that avoids expression trees by using a property name. - /// - /// The object where the property chain starts. - /// The property name to observe. +<# +} + +void EmitWhenAnyRequiresUnreferencedCode() +{ +#> #if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] + [RequiresUnreferencedCode("WhenAny creates an Expression which requires unreferenced code because the members being referenced by the Expression may be trimmed.")] #endif - public static IObservable WhenAnyValue( - this TSender? sender, - string propertyName) - { - return sender!.ObservableForProperty(propertyName, beforeChange: false, skipInitial: false, isDistinct: true) - .Select(x => x.Value); - } - - /// - /// WhenAnyValue allows you to observe whenever the value of a - /// property on an object has changed, providing an initial value when - /// the Observable is set up, unlike ObservableForProperty(). Use this - /// method in constructors to set up bindings between properties that also - /// need an initial setup. - /// - /// The object where the property chain starts. - /// The first property chain to reference. This will be a expression pointing to a end property or field. - /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +<# +} + +void EmitWinUIWhenAnyValueRequiresUnreferencedCode() +{ +#> +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyValue may use methods that require unreferenced code")] #endif - public static IObservable WhenAnyValue( - this TSender? sender, - Expression> property1, - bool isDistinct) - { - return sender!.WhenAny(property1, (IObservedChange c1) => c1.Value, isDistinct); - } +<# +} - /// - /// AOT-friendly overload that avoids expression trees by using a property name and distinct option. - /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] +void EmitWinUIWhenAnyRequiresUnreferencedCode() +{ +#> +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAny may use methods that require unreferenced code")] #endif - public static IObservable WhenAnyValue( - this TSender? sender, - string propertyName, - bool isDistinct) - { - return sender!.ObservableForProperty(propertyName, beforeChange: false, skipInitial: false, isDistinct: isDistinct) - .Select(x => x.Value); - } - - <# for(int length=1; length <= maxFuncLength; length++) { #> - <# var templParams = Enumerable.Range(1, length).Select(x => "T" + x.ToString()); #> - <# var templParamsDec = Enumerable.Range(1, length).Select(x => "T" + x.ToString()); #> - <# string selectorTypeParams = String.Join(", ", templParams.Select(x => String.Format("IObservedChange", x))); #> - <# string valuePropertyParams = String.Join(", ", Enumerable.Range(1, length).Select(x => String.Format("property{0}", x))); #> - <# string valueSelectorParams = String.Join(", ", Enumerable.Range(1, length).Select(x => "c" + x)); #> - <# string valueSelectorArgs = String.Join(", ", Enumerable.Range(1, length).Select(x => String.Format("c{0}.Value", x))); #> - <# string dynamicSelectorTypeParams = String.Join(", ", templParams.Select(x => "IObservedChange")); #> - <# string selectorCall = "selector(" + String.Join(", ", Enumerable.Range(1, length).Select(x => "islot" + x.ToString())) + ")"; #> - - <# if (length != 1 && length <= 7) { #>/// - /// WhenAnyValue allows you to observe whenever the value of one or more - /// properties on an object have changed, providing an initial value when - /// the Observable is set up, unlike ObservableForProperty(). Use this - /// method in constructors to set up bindings between properties that also - /// need an initial setup. - /// - /// The object where the property chain starts. - <# for(int i=1; i <= length; i++) { #> +<# +} + +void EmitWinUIWhenAnyObservableUnreferencedCode() +{ +#> +#if NET6_0_OR_GREATER && WINUI_TARGET + [RequiresUnreferencedCode("The WinUI implementation of WhenAnyObservable may use methods that require unreferenced code")] +#endif +<# +} +#> + +namespace ReactiveUI; + +/// Extension methods associated with the WhenAny/WhenAnyValue classes. +public static class WhenAnyMixin +{ + /// + /// WhenAnyValue allows you to observe whenever the value of a + /// property on an object has changed, providing an initial value when + /// the Observable is set up, unlike ObservableForProperty(). Use this + /// method in constructors to set up bindings between properties that also + /// need an initial setup. + /// + /// The object where the property chain starts. + /// The first property chain to reference. This will be a expression pointing to a end property or field. +<# EmitWinUIWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable WhenAnyValue( + this TSender? sender, + Expression> property1) + { + return sender!.WhenAny(property1, (IObservedChange c1) => c1.Value); + } + + /// + /// AOT-friendly overload that avoids expression trees by using a property name. + /// + /// The object where the property chain starts. + /// The property name to observe. +<# EmitWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable WhenAnyValue( + this TSender? sender, + string propertyName) + { + return sender!.ObservableForProperty(propertyName, beforeChange: false, skipInitial: false, isDistinct: true) + .Select(x => x.Value); + } + + /// + /// WhenAnyValue allows you to observe whenever the value of a + /// property on an object has changed, providing an initial value when + /// the Observable is set up, unlike ObservableForProperty(). Use this + /// method in constructors to set up bindings between properties that also + /// need an initial setup. + /// + /// The object where the property chain starts. + /// The first property chain to reference. This will be a expression pointing to a end property or field. + /// if set to true [is distinct]. +<# EmitWinUIWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable WhenAnyValue( + this TSender? sender, + Expression> property1, + bool isDistinct) + { + return sender!.WhenAny(property1, (IObservedChange c1) => c1.Value, isDistinct); + } + + /// + /// AOT-friendly overload that avoids expression trees by using a property name and distinct option. + /// +<# EmitWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable WhenAnyValue( + this TSender? sender, + string propertyName, + bool isDistinct) + { + return sender!.ObservableForProperty(propertyName, beforeChange: false, skipInitial: false, isDistinct: isDistinct) + .Select(x => x.Value); + } + + <# for(int length=1; length <= maxFuncLength; length++) { #> + <# var templParams = Enumerable.Range(1, length).Select(x => "T" + x.ToString()); #> + <# var templParamsDec = Enumerable.Range(1, length).Select(x => "T" + x.ToString()); #> + <# string selectorTypeParams = String.Join(", ", templParams.Select(x => String.Format("IObservedChange", x))); #> + <# string valuePropertyParams = String.Join(", ", Enumerable.Range(1, length).Select(x => String.Format("property{0}", x))); #> + <# string valueSelectorParams = String.Join(", ", Enumerable.Range(1, length).Select(x => "c" + x)); #> + <# string valueSelectorArgs = String.Join(", ", Enumerable.Range(1, length).Select(x => String.Format("c{0}.Value", x))); #> + <# string dynamicSelectorTypeParams = String.Join(", ", templParams.Select(x => "IObservedChange")); #> + <# string selectorCall = "selector(" + String.Join(", ", Enumerable.Range(1, length).Select(x => "islot" + x.ToString())) + ")"; #> + + <# if (length != 1 && length <= 7) { #>/// + /// WhenAnyValue allows you to observe whenever the value of one or more + /// properties on an object have changed, providing an initial value when + /// the Observable is set up, unlike ObservableForProperty(). Use this + /// method in constructors to set up bindings between properties that also + /// need an initial setup. + /// + /// The object where the property chain starts. + <# for(int i=1; i <= length; i++) { #> /// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. + <# } #> +<# EmitWinUIWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable<(<#= String.Join(",", templParams) #>)> WhenAnyValue>( + this TSender? sender, + <# for(int i=1; i <= length; i++) { #> + Expression>> property<#=i#><# if (i != length) { #>,<# } #> + + <# } #>) + { + return sender!.WhenAny(<#= valuePropertyParams #>, + (<#= valueSelectorParams #>) => + (<#= valueSelectorArgs #>)); + } + <# } #> + + <# if (length != 1 && length <= 7) { #>/// + /// AOT-friendly tuple overloads using property names instead of expressions. + /// +<# EmitWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable<(<#= String.Join(",", templParams) #>)> WhenAnyValue>( + this TSender? sender, + <# for(int i=1; i <= length; i++) { #> + string property<#=i#>Name<# if (i != length) { #>,<# } #> + <# } #>) + { + <# for(int i=1; i <= length; i++) { #> + var o<#=i#> = sender!.ObservableForProperty>(property<#=i#>Name, beforeChange: false, skipInitial: false, isDistinct: true); <# } #> -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable<(<#= String.Join(",", templParams) #>)> WhenAnyValue>( - this TSender? sender, + return Observable.CombineLatest( <# for(int i=1; i <= length; i++) { #> - Expression>> property<#=i#><# if (i != length) { #>,<# } #> - - <# } #>) - { - return sender!.WhenAny(<#= valuePropertyParams #>, - (<#= valueSelectorParams #>) => - (<#= valueSelectorArgs #>)); - } - <# } #> + o<#=i#>.Select(x => x.Value)<#= i != length ? "," : string.Empty #> + <# } #> + , (<#= String.Join(",", Enumerable.Range(1, length).Select(x => "v" + x)) #>) => + (<#= String.Join(",", Enumerable.Range(1, length).Select(x => "v" + x)) #>) + ); + } + <# } #> - <# if (length != 1 && length <= 7) { #>/// - /// AOT-friendly tuple overloads using property names instead of expressions. - /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable<(<#= String.Join(",", templParams) #>)> WhenAnyValue>( - this TSender? sender, - <# for(int i=1; i <= length; i++) { #> - string property<#=i#>Name<# if (i != length) { #>,<# } #> - <# } #>) - { + <# if (length != 1 && length <= 7) { #>/// + /// WhenAnyValue allows you to observe whenever the value of one or more + /// properties on an object have changed, providing an initial value when + /// the Observable is set up, unlike ObservableForProperty(). Use this + /// method in constructors to set up bindings between properties that also + /// need an initial setup. + /// + /// The object where the property chain starts. + /// if set to true [is distinct]. + <# for(int i=1; i <= length; i++) { #> +/// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. + <# } #> +<# EmitWinUIWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable<(<#= String.Join(",", templParams) #>)> WhenAnyValue>( + this TSender? sender, + <# for(int i=1; i <= length; i++) { #> + Expression>> property<#=i#><# if (i != length) { #>,<# } #> + + <# } #>, + bool isDistinct) + { + return sender!.WhenAny(<#= valuePropertyParams #>, + (<#= valueSelectorParams #>) => + (<#= valueSelectorArgs #>), + isDistinct); + } + <# } #> + + <# if (length != 1 && length <= 7) { #>/// + /// AOT-friendly tuple overloads using property names with distinct option. + /// +<# EmitWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable<(<#= String.Join(",", templParams) #>)> WhenAnyValue>( + this TSender? sender, + <# for(int i=1; i <= length; i++) { #> + string property<#=i#>Name<# if (i != length) { #>,<# } #> + <# } #>, + bool isDistinct) + { + <# for(int i=1; i <= length; i++) { #> + var o<#=i#> = sender!.ObservableForProperty>(property<#=i#>Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + <# } #> + return Observable.CombineLatest( <# for(int i=1; i <= length; i++) { #> - var o<#=i#> = sender!.ObservableForProperty>(property<#=i#>Name, beforeChange: false, skipInitial: false, isDistinct: true); + o<#=i#>.Select(x => x.Value)<#= i != length ? "," : string.Empty #> <# } #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - o<#=i#>.Select(x => x.Value)<#= i != length ? "," : string.Empty #> - <# } #> - , (<#= String.Join(",", Enumerable.Range(1, length).Select(x => "v" + x)) #>) => - (<#= String.Join(",", Enumerable.Range(1, length).Select(x => "v" + x)) #>) - ); - } + , (<#= String.Join(",", Enumerable.Range(1, length).Select(x => "v" + x)) #>) => + (<#= String.Join(",", Enumerable.Range(1, length).Select(x => "v" + x)) #>) + ); + } + <# } #> + + /// + /// WhenAnyValue allows you to observe whenever the value of one or more + /// properties on an object have changed, providing an initial value when + /// the Observable is set up, unlike ObservableForProperty(). Use this + /// method in constructors to set up bindings between properties that also + /// need an initial setup. + /// + /// The object where the property chain starts. + <# for(int i=1; i <= length; i++) { #> +/// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. + <# } #>/// The selector which will determine the final value from the properties. +<# EmitWinUIWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable WhenAnyValue>( + this TSender? sender, + <# for(int i=1; i <= length; i++) { #> + Expression>> property<#=i#>, <# } #> + Func<<#= String.Join(",", templParams) #>, TRet> selector) + { + return sender!.WhenAny(<#= valuePropertyParams #>, + (<#= valueSelectorParams #>) => + selector(<#= valueSelectorArgs #>)); + } - <# if (length != 1 && length <= 7) { #>/// - /// WhenAnyValue allows you to observe whenever the value of one or more - /// properties on an object have changed, providing an initial value when - /// the Observable is set up, unlike ObservableForProperty(). Use this - /// method in constructors to set up bindings between properties that also - /// need an initial setup. - /// - /// The object where the property chain starts. - /// if set to true [is distinct]. + /// + /// AOT-friendly selector overload using property names. + /// +<# EmitWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable WhenAnyValue>( + this TSender? sender, <# for(int i=1; i <= length; i++) { #> -/// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. + string property<#=i#>Name, <# } #> -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable<(<#= String.Join(",", templParams) #>)> WhenAnyValue>( - this TSender? sender, + Func<<#= String.Join(",", templParams) #>, TRet> selector) + { + <# for(int i=1; i <= length; i++) { #> + var o<#=i#> = sender!.ObservableForProperty>(property<#=i#>Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); + <# } #> + <# if (length == 1) { #> + return o1.Select(selector); + <# } else { #> + return Observable.CombineLatest( <# for(int i=1; i <= length; i++) { #> - Expression>> property<#=i#><# if (i != length) { #>,<# } #> + o<#=i#><#= i != length ? "," : string.Empty #> + <# } #> + , selector); + <# } #> + } - <# } #>, - bool isDistinct) - { - return sender!.WhenAny(<#= valuePropertyParams #>, - (<#= valueSelectorParams #>) => - (<#= valueSelectorArgs #>), - isDistinct); - } + /// + /// WhenAnyValue allows you to observe whenever the value of one or more + /// properties on an object have changed, providing an initial value when + /// the Observable is set up, unlike ObservableForProperty(). Use this + /// method in constructors to set up bindings between properties that also + /// need an initial setup. + /// + /// The object where the property chain starts. + /// if set to true [is distinct]. + <# for(int i=1; i <= length; i++) { #> +/// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. + <# } #>/// The selector which will determine the final value from the properties. +<# EmitWinUIWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable WhenAnyValue>( + this TSender? sender, + <# for(int i=1; i <= length; i++) { #> + Expression>> property<#=i#>, <# } #> + Func<<#= String.Join(",", templParams) #>, TRet> selector, + bool isDistinct) + { + return sender!.WhenAny(<#= valuePropertyParams #>, + (<#= valueSelectorParams #>) => + selector(<#= valueSelectorArgs #>), + isDistinct); + } - <# if (length != 1 && length <= 7) { #>/// - /// AOT-friendly tuple overloads using property names with distinct option. - /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable<(<#= String.Join(",", templParams) #>)> WhenAnyValue>( - this TSender? sender, - <# for(int i=1; i <= length; i++) { #> - string property<#=i#>Name<# if (i != length) { #>,<# } #> - <# } #>, - bool isDistinct) - { + /// + /// AOT-friendly selector overload using property names and distinct option. + /// +<# EmitWhenAnyValueRequiresUnreferencedCode(); #> + public static IObservable WhenAnyValue>( + this TSender? sender, + <# for(int i=1; i <= length; i++) { #> + string property<#=i#>Name, + <# } #> + Func<<#= String.Join(",", templParams) #>, TRet> selector, + bool isDistinct) + { + <# for(int i=1; i <= length; i++) { #> + var o<#=i#> = sender!.ObservableForProperty>(property<#=i#>Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + <# } #> + <# if (length == 1) { #> + return o1.Select(selector); + <# } else { #> + return Observable.CombineLatest( <# for(int i=1; i <= length; i++) { #> - var o<#=i#> = sender!.ObservableForProperty>(property<#=i#>Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct); + o<#=i#><#= i != length ? "," : string.Empty #> <# } #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - o<#=i#>.Select(x => x.Value)<#= i != length ? "," : string.Empty #> - <# } #> - , (<#= String.Join(",", Enumerable.Range(1, length).Select(x => "v" + x)) #>) => - (<#= String.Join(",", Enumerable.Range(1, length).Select(x => "v" + x)) #>) - ); - } + , selector); <# } #> + } - /// - /// WhenAnyValue allows you to observe whenever the value of one or more - /// properties on an object have changed, providing an initial value when - /// the Observable is set up, unlike ObservableForProperty(). Use this - /// method in constructors to set up bindings between properties that also - /// need an initial setup. - /// - /// The object where the property chain starts. - <# for(int i=1; i <= length; i++) { #> + /// + /// WhenAny allows you to observe whenever one or more properties on an + /// object have changed, providing an initial value when the Observable + /// is set up, unlike ObservableForProperty(). Use this method in + /// constructors to set up bindings between properties that also need an + /// initial setup. + /// + /// The object where the property chain starts. + <# for(int i=1; i <= length; i++) { #> /// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. - <# } #>/// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAnyValue>( + <# } #>/// The selector which will determine the final value from the properties. +<# EmitWinUIWhenAnyRequiresUnreferencedCode(); #> + public static IObservable WhenAny>( this TSender? sender, - <# for(int i=1; i <= length; i++) { #> + <# for(int i=1; i <= length; i++) { #> Expression>> property<#=i#>, + <# } #> + Func<<#= selectorTypeParams #>, TRet> selector) + { + <# if (length == 1){ #> + return sender!.ObservableForProperty(property<#=1#>, false, false).Select(selector); + <# }else{ #> + return Observable.CombineLatest( + <# for(int i=1; i <= length; i++) { #> + sender!.ObservableForProperty(property<#=i#>, false, false), <# } #> - Func<<#= String.Join(",", templParams) #>, TRet> selector) - { - return sender!.WhenAny(<#= valuePropertyParams #>, - (<#= valueSelectorParams #>) => - selector(<#= valueSelectorArgs #>)); - } - - /// - /// AOT-friendly selector overload using property names. - /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAnyValue>( + selector + ); + <# } #> + } + + /// + /// AOT-friendly WhenAny overload using property names. + /// +<# EmitWhenAnyRequiresUnreferencedCode(); #> + public static IObservable WhenAny>( this TSender? sender, - <# for(int i=1; i <= length; i++) { #> + <# for(int i=1; i <= length; i++) { #> string property<#=i#>Name, - <# } #> - Func<<#= String.Join(",", templParams) #>, TRet> selector) - { + <# } #> + Func<<#= selectorTypeParams #>, TRet> selector) + { + <# if (length == 1){ #> + return sender!.ObservableForProperty(property1Name, false, false) + .Select(c1 => selector(c1)); + <# }else{ #> + return Observable.CombineLatest( <# for(int i=1; i <= length; i++) { #> - var o<#=i#> = sender!.ObservableForProperty>(property<#=i#>Name, beforeChange: false, skipInitial: false, isDistinct: true).Select(x => x.Value); - <# } #> - <# if (length == 1) { #> - return o1.Select(selector); - <# } else { #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - o<#=i#><#= i != length ? "," : string.Empty #> - <# } #> - , selector); + sender!.ObservableForProperty>(property<#=i#>Name, false, false), <# } #> - } - - /// - /// WhenAnyValue allows you to observe whenever the value of one or more - /// properties on an object have changed, providing an initial value when - /// the Observable is set up, unlike ObservableForProperty(). Use this - /// method in constructors to set up bindings between properties that also - /// need an initial setup. - /// - /// The object where the property chain starts. - /// if set to true [is distinct]. - <# for(int i=1; i <= length; i++) { #> + selector + ); + <# } #> + } + + /// + /// WhenAny allows you to observe whenever one or more properties on an + /// object have changed, providing an initial value when the Observable + /// is set up, unlike ObservableForProperty(). Use this method in + /// constructors to set up bindings between properties that also need an + /// initial setup. + /// + /// The object where the property chain starts. + /// if set to true [is distinct]. + <# for(int i=1; i <= length; i++) { #> /// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. - <# } #>/// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAnyValue>( + <# } #>/// The selector which will determine the final value from the properties. +<# EmitWinUIWhenAnyRequiresUnreferencedCode(); #> + public static IObservable WhenAny>( this TSender? sender, - <# for(int i=1; i <= length; i++) { #> + <# for(int i=1; i <= length; i++) { #> Expression>> property<#=i#>, - <# } #> - Func<<#= String.Join(",", templParams) #>, TRet> selector, + <# } #> + Func<<#= selectorTypeParams #>, TRet> selector, bool isDistinct) - { - return sender!.WhenAny(<#= valuePropertyParams #>, - (<#= valueSelectorParams #>) => - selector(<#= valueSelectorArgs #>), - isDistinct); - } - - /// - /// AOT-friendly selector overload using property names and distinct option. - /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyValue uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAnyValue>( - this TSender? sender, - <# for(int i=1; i <= length; i++) { #> - string property<#=i#>Name, - <# } #> - Func<<#= String.Join(",", templParams) #>, TRet> selector, - bool isDistinct) - { + { + <# if (length == 1){ #> + return sender!.ObservableForProperty(property<#=1#>, false, false, isDistinct).Select(selector); + <# }else{ #> + return Observable.CombineLatest( <# for(int i=1; i <= length; i++) { #> - var o<#=i#> = sender!.ObservableForProperty>(property<#=i#>Name, beforeChange: false, skipInitial: false, isDistinct: isDistinct).Select(x => x.Value); + sender!.ObservableForProperty(property<#=i#>, false, false, isDistinct), <# } #> - <# if (length == 1) { #> - return o1.Select(selector); - <# } else { #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - o<#=i#><#= i != length ? "," : string.Empty #> - <# } #> - , selector); - <# } #> - } - - /// - /// WhenAny allows you to observe whenever one or more properties on an - /// object have changed, providing an initial value when the Observable - /// is set up, unlike ObservableForProperty(). Use this method in - /// constructors to set up bindings between properties that also need an - /// initial setup. - /// - /// The object where the property chain starts. + selector + ); + <# } #> + } + + /// + /// AOT-friendly WhenAny overload using property names and distinct option. + /// +<# EmitWhenAnyRequiresUnreferencedCode(); #> + public static IObservable WhenAny>( + this TSender? sender, <# for(int i=1; i <= length; i++) { #> -/// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. - <# } #>/// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAny>( - this TSender? sender, + string property<#=i#>Name, + <# } #> + Func<<#= selectorTypeParams #>, TRet> selector, + bool isDistinct) + { + <# if (length == 1){ #> + return sender!.ObservableForProperty(property1Name, false, false, isDistinct) + .Select(c1 => selector(c1)); + <# }else{ #> + return Observable.CombineLatest( <# for(int i=1; i <= length; i++) { #> - Expression>> property<#=i#>, + sender!.ObservableForProperty>(property<#=i#>Name, false, false, isDistinct), <# } #> - Func<<#= selectorTypeParams #>, TRet> selector) - { - <# if (length == 1){ #> - return sender!.ObservableForProperty(property<#=1#>, false, false).Select(selector); - <# }else{ #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - sender!.ObservableForProperty(property<#=i#>, false, false), - <# } #> - selector - ); - <# } #> - } + selector + ); + <# } #> + } - /// - /// AOT-friendly WhenAny overload using property names. - /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAny>( - this TSender? sender, - <# for(int i=1; i <= length; i++) { #> - string property<#=i#>Name, - <# } #> - Func<<#= selectorTypeParams #>, TRet> selector) - { - <# if (length == 1){ #> - return sender!.ObservableForProperty(property1Name, false, false) - .Select(c1 => selector(c1)); - <# }else{ #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - sender!.ObservableForProperty>(property<#=i#>Name, false, false), - <# } #> - selector - ); - <# } #> - } - - /// - /// WhenAny allows you to observe whenever one or more properties on an - /// object have changed, providing an initial value when the Observable - /// is set up, unlike ObservableForProperty(). Use this method in - /// constructors to set up bindings between properties that also need an - /// initial setup. - /// - /// The object where the property chain starts. - /// if set to true [is distinct]. - <# for(int i=1; i <= length; i++) { #> + /// + /// WhenAny allows you to observe whenever one or more properties on an + /// object have changed, providing an initial value when the Observable + /// is set up, unlike ObservableForProperty(). Use this method in + /// constructors to set up bindings between properties that also need an + /// initial setup. + /// + /// The object where the property chain starts. + <# for(int i=1; i <= length; i++) { #> /// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. - <# } #>/// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAny>( - this TSender? sender, + <# } #>/// The selector which will determine the final value from the properties. +<# EmitWinUIWhenAnyRequiresUnreferencedCode(); #> + public static IObservable WhenAnyDynamic( + this TSender? sender, + <# for(int i=1; i <= length; i++) { #> + Expression? property<#=i#>, + <# } #> + Func<<#= dynamicSelectorTypeParams #>, TRet> selector) + { + <# if (length == 1){ #> + return ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property<#=1#>, false, false).Select(selector); + <# }else{ #> + return Observable.CombineLatest( <# for(int i=1; i <= length; i++) { #> - Expression>> property<#=i#>, + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property<#=i#>, false, false), <# } #> - Func<<#= selectorTypeParams #>, TRet> selector, - bool isDistinct) - { - <# if (length == 1){ #> - return sender!.ObservableForProperty(property<#=1#>, false, false, isDistinct).Select(selector); - <# }else{ #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - sender!.ObservableForProperty(property<#=i#>, false, false, isDistinct), - <# } #> - selector - ); - <# } #> - } + selector + ); + <# } #> + } - /// - /// AOT-friendly WhenAny overload using property names and distinct option. - /// -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAny uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAny may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAny>( - this TSender? sender, - <# for(int i=1; i <= length; i++) { #> - string property<#=i#>Name, - <# } #> - Func<<#= selectorTypeParams #>, TRet> selector, - bool isDistinct) - { - <# if (length == 1){ #> - return sender!.ObservableForProperty(property1Name, false, false, isDistinct) - .Select(c1 => selector(c1)); - <# }else{ #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - sender!.ObservableForProperty>(property<#=i#>Name, false, false, isDistinct), - <# } #> - selector - ); - <# } #> - } - - /// - /// WhenAny allows you to observe whenever one or more properties on an - /// object have changed, providing an initial value when the Observable - /// is set up, unlike ObservableForProperty(). Use this method in - /// constructors to set up bindings between properties that also need an - /// initial setup. - /// - /// The object where the property chain starts. - <# for(int i=1; i <= length; i++) { #> + /// + /// WhenAny allows you to observe whenever one or more properties on an + /// object have changed, providing an initial value when the Observable + /// is set up, unlike ObservableForProperty(). Use this method in + /// constructors to set up bindings between properties that also need an + /// initial setup. + /// + /// The object where the property chain starts. + <# for(int i=1; i <= length; i++) { #> /// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. - <# } #>/// The selector which will determine the final value from the properties. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAnyDynamic( - this TSender? sender, - <# for(int i=1; i <= length; i++) { #> - Expression? property<#=i#>, - <# } #> - Func<<#= dynamicSelectorTypeParams #>, TRet> selector) - { - <# if (length == 1){ #> - return ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property<#=1#>, false, false).Select(selector); - <# }else{ #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property<#=i#>, false, false), - <# } #> - selector - ); - <# } #> - } - - /// - /// WhenAny allows you to observe whenever one or more properties on an - /// object have changed, providing an initial value when the Observable - /// is set up, unlike ObservableForProperty(). Use this method in - /// constructors to set up bindings between properties that also need an - /// initial setup. - /// - /// The object where the property chain starts. + <# } #>/// The selector which will determine the final value from the properties. + /// if set to true [is distinct]. +<# EmitWinUIWhenAnyRequiresUnreferencedCode(); #> + public static IObservable WhenAnyDynamic( + this TSender? sender, <# for(int i=1; i <= length; i++) { #> -/// The <#=i#> property chain to reference. This will be a expression pointing to a end property or field. - <# } #>/// The selector which will determine the final value from the properties. - /// if set to true [is distinct]. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyDynamic uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyDynamic may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAnyDynamic( - this TSender? sender, + Expression? property<#=i#>, + <# } #> + Func<<#= dynamicSelectorTypeParams #>, TRet> selector, + bool isDistinct) + { + <# if (length == 1){ #> + return ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property<#=1#>, false, false, isDistinct).Select(selector); + <# }else{ #> + return Observable.CombineLatest( <# for(int i=1; i <= length; i++) { #> - Expression? property<#=i#>, + ReactiveNotifyPropertyChangedMixin + .SubscribeToExpressionChain(sender, property<#=i#>, false, false, isDistinct), <# } #> - Func<<#= dynamicSelectorTypeParams #>, TRet> selector, - bool isDistinct) - { - <# if (length == 1){ #> - return ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property<#=1#>, false, false, isDistinct).Select(selector); - <# }else{ #> - return Observable.CombineLatest( - <# for(int i=1; i <= length; i++) { #> - ReactiveNotifyPropertyChangedMixin - .SubscribeToExpressionChain(sender, property<#=i#>, false, false, isDistinct), - <# } #> - selector - ); - <# } #> - } - <# } #> + selector + ); + <# } #> } +<# } #> +} - /// A mixin which provides support for subscribing to observable properties. - public static class WhenAnyObservableMixin +/// A mixin which provides support for subscribing to observable properties. +public static class WhenAnyObservableMixin +{ + /// Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value. + /// The object where the property chain starts. + /// The first observable to observe. +<# EmitWinUIWhenAnyObservableUnreferencedCode(); #> + public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1) + where TSender : class { - /// Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value. - /// The object where the property chain starts. - /// The first observable to observe. -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAnyObservable(this TSender? sender, Expression?>> obs1) - where TSender : class - { - return sender.WhenAny(obs1, x => x.Value!.EmptyIfNull()).Switch(); - } + return sender.WhenAny(obs1, x => x.Value!.EmptyIfNull()).Switch(); + } <# for(int length=2; length <= maxFuncLength; length++) { #> - /// Monitor a property that is an observable, and subscribe to the most recent emitted value. - /// The object where the property chain starts. - <# for(int i=1; i <= length; i++) { #> + /// Monitor a property that is an observable, and subscribe to the most recent emitted value. + /// The object where the property chain starts. + <# for(int i=1; i <= length; i++) { #> /// The <#=i#> property chain to reference which ends with an observable. This will be a expression pointing to a end property or field which must be an observable. - <# } #> + <# } #> <# string paramsStr = String.Join(", ", Enumerable.Range(1, length).Select(x => "Expression?>> obs" + x.ToString())); #> <# string varsStr = String.Join(", ", Enumerable.Range(1, length).Select(x => "obs" + x.ToString())); #> <# string valsStr = String.Join(", ", Enumerable.Range(1, length).Select(x => "o" + x.ToString() + ".Value!.EmptyIfNull()")); #> -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAnyObservable(this TSender? sender, <#= paramsStr #>) - where TSender : class - { - return sender.WhenAny(<#= varsStr #>, (<#=varsStr.Replace("obs", "o")#>) => new[] {<#= valsStr #>}) - .Select(x => x.Merge()).Switch(); - } +<# EmitWinUIWhenAnyObservableUnreferencedCode(); #> + public static IObservable WhenAnyObservable(this TSender? sender, <#= paramsStr #>) + where TSender : class + { + return sender.WhenAny(<#= varsStr #>, (<#=varsStr.Replace("obs", "o")#>) => new[] {<#= valsStr #>}) + .Select(x => x.Merge()).Switch(); + } <# } #> <# for(int length=2; length <= maxFuncLength; length++) { #> - /// Monitor a property that is an observable, and subscribe to the most recent emitted value. - /// The object where the property chain starts. - <# for(int i=1; i <= length; i++) { #> + /// Monitor a property that is an observable, and subscribe to the most recent emitted value. + /// The object where the property chain starts. + <# for(int i=1; i <= length; i++) { #> /// The <#=i#> property chain to reference. - <# } #>/// The selector which will determine the final value from the properties. This must be an observable. + <# } #>/// The selector which will determine the final value from the properties. This must be an observable. <# var templParams = Enumerable.Range(1, length).Select(x => "T" + x.ToString() + "?"); #> <# var templParamsDec = Enumerable.Range(1, length).Select(x => "T" + x.ToString()); #> <# string varsStr = String.Join(", ", Enumerable.Range(1, length).Select(x => "obs" + x.ToString())); #> <# string valsStr = String.Join(", ", Enumerable.Range(1, length).Select(x => "o" + x.ToString() + ".Value!.EmptyIfNull()")); #> <# string selectorTypeParams = String.Join(", ", templParams); #> -#if NET6_0_OR_GREATER - [RequiresDynamicCode("WhenAnyObservable uses expression trees which require dynamic code generation in AOT scenarios.")] - [RequiresUnreferencedCode("WhenAnyObservable may reference members that could be trimmed in AOT scenarios.")] -#endif - public static IObservable WhenAnyObservable>(this TSender? sender, - <# for(int i=1; i <= length; i++) { #> - Expression>?>> obs<#=i#>, - <# } #> - Func<<#= selectorTypeParams #>, TRet> selector) - where TSender : class - { - return sender.WhenAny(<#= varsStr #>, (<#=varsStr.Replace("obs", "o")#>) => Observable.CombineLatest(<#= valsStr #>, selector)) - .Switch(); - } +<# EmitWinUIWhenAnyObservableUnreferencedCode(); #> + public static IObservable WhenAnyObservable>(this TSender? sender, + <# for(int i=1; i <= length; i++) { #> + Expression>?>> obs<#=i#>, + <# } #> + Func<<#= selectorTypeParams #>, TRet> selector) + where TSender : class + { + return sender.WhenAny(<#= varsStr #>, (<#=varsStr.Replace("obs", "o")#>) => Observable.CombineLatest(<#= valsStr #>, selector)) + .Switch(); + } <# } #> } - internal static class ObservableExtensions +internal static class ObservableExtensions +{ + public static IObservable EmptyIfNull(this IObservable @this) { - public static IObservable EmptyIfNull(this IObservable @this) - { - return @this ?? Observable.Empty(); - } + return @this ?? Observable.Empty(); } }