|
2 | 2 | // The .NET Foundation licenses this file to you under the MIT License. |
3 | 3 | // See the LICENSE file in the project root for more information. |
4 | 4 |
|
| 5 | +using System.Diagnostics.CodeAnalysis; |
5 | 6 | using System.Reactive.Concurrency; |
6 | 7 | using System.Threading; |
7 | 8 |
|
@@ -538,6 +539,9 @@ public static IObservable<EventPattern<TEventArgs>> FromEventPattern<TEventArgs> |
538 | 539 | /// </para> |
539 | 540 | /// </remarks> |
540 | 541 | /// <seealso cref="ToEventPattern"/> |
| 542 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 543 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 544 | +#endif |
541 | 545 | public static IObservable<EventPattern<object>> FromEventPattern(object target, string eventName) |
542 | 546 | { |
543 | 547 | if (target == null) |
@@ -581,6 +585,9 @@ public static IObservable<EventPattern<object>> FromEventPattern(object target, |
581 | 585 | /// </para> |
582 | 586 | /// </remarks> |
583 | 587 | /// <seealso cref="ToEventPattern"/> |
| 588 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 589 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 590 | +#endif |
584 | 591 | public static IObservable<EventPattern<object>> FromEventPattern(object target, string eventName, IScheduler scheduler) |
585 | 592 | { |
586 | 593 | if (target == null) |
@@ -633,6 +640,9 @@ public static IObservable<EventPattern<object>> FromEventPattern(object target, |
633 | 640 | /// </para> |
634 | 641 | /// </remarks> |
635 | 642 | /// <seealso cref="ToEventPattern"/> |
| 643 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 644 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 645 | +#endif |
636 | 646 | public static IObservable<EventPattern<TEventArgs>> FromEventPattern<TEventArgs>(object target, string eventName) |
637 | 647 | { |
638 | 648 | if (target == null) |
@@ -677,6 +687,9 @@ public static IObservable<EventPattern<TEventArgs>> FromEventPattern<TEventArgs> |
677 | 687 | /// </para> |
678 | 688 | /// </remarks> |
679 | 689 | /// <seealso cref="ToEventPattern"/> |
| 690 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 691 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 692 | +#endif |
680 | 693 | public static IObservable<EventPattern<TEventArgs>> FromEventPattern<TEventArgs>(object target, string eventName, IScheduler scheduler) |
681 | 694 | { |
682 | 695 | if (target == null) |
@@ -730,6 +743,9 @@ public static IObservable<EventPattern<TEventArgs>> FromEventPattern<TEventArgs> |
730 | 743 | /// </para> |
731 | 744 | /// </remarks> |
732 | 745 | /// <seealso cref="ToEventPattern"/> |
| 746 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 747 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 748 | +#endif |
733 | 749 | public static IObservable<EventPattern<TSender, TEventArgs>> FromEventPattern<TSender, TEventArgs>(object target, string eventName) |
734 | 750 | { |
735 | 751 | if (target == null) |
@@ -775,6 +791,9 @@ public static IObservable<EventPattern<TSender, TEventArgs>> FromEventPattern<TS |
775 | 791 | /// </para> |
776 | 792 | /// </remarks> |
777 | 793 | /// <seealso cref="ToEventPattern"/> |
| 794 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 795 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 796 | +#endif |
778 | 797 | public static IObservable<EventPattern<TSender, TEventArgs>> FromEventPattern<TSender, TEventArgs>(object target, string eventName, IScheduler scheduler) |
779 | 798 | { |
780 | 799 | if (target == null) |
@@ -830,6 +849,9 @@ public static IObservable<EventPattern<TSender, TEventArgs>> FromEventPattern<TS |
830 | 849 | /// </para> |
831 | 850 | /// </remarks> |
832 | 851 | /// <seealso cref="ToEventPattern"/> |
| 852 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 853 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 854 | +#endif |
833 | 855 | public static IObservable<EventPattern<object>> FromEventPattern(Type type, string eventName) |
834 | 856 | { |
835 | 857 | if (type == null) |
@@ -873,6 +895,9 @@ public static IObservable<EventPattern<object>> FromEventPattern(Type type, stri |
873 | 895 | /// </para> |
874 | 896 | /// </remarks> |
875 | 897 | /// <seealso cref="ToEventPattern"/> |
| 898 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 899 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 900 | +#endif |
876 | 901 | public static IObservable<EventPattern<object>> FromEventPattern(Type type, string eventName, IScheduler scheduler) |
877 | 902 | { |
878 | 903 | if (type == null) |
@@ -925,6 +950,9 @@ public static IObservable<EventPattern<object>> FromEventPattern(Type type, stri |
925 | 950 | /// </para> |
926 | 951 | /// </remarks> |
927 | 952 | /// <seealso cref="ToEventPattern"/> |
| 953 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 954 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 955 | +#endif |
928 | 956 | public static IObservable<EventPattern<TEventArgs>> FromEventPattern<TEventArgs>(Type type, string eventName) |
929 | 957 | { |
930 | 958 | if (type == null) |
@@ -969,6 +997,9 @@ public static IObservable<EventPattern<TEventArgs>> FromEventPattern<TEventArgs> |
969 | 997 | /// </para> |
970 | 998 | /// </remarks> |
971 | 999 | /// <seealso cref="ToEventPattern"/> |
| 1000 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 1001 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 1002 | +#endif |
972 | 1003 | public static IObservable<EventPattern<TEventArgs>> FromEventPattern<TEventArgs>(Type type, string eventName, IScheduler scheduler) |
973 | 1004 | { |
974 | 1005 | if (type == null) |
@@ -1022,6 +1053,9 @@ public static IObservable<EventPattern<TEventArgs>> FromEventPattern<TEventArgs> |
1022 | 1053 | /// </para> |
1023 | 1054 | /// </remarks> |
1024 | 1055 | /// <seealso cref="ToEventPattern"/> |
| 1056 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 1057 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 1058 | +#endif |
1025 | 1059 | public static IObservable<EventPattern<TSender, TEventArgs>> FromEventPattern<TSender, TEventArgs>(Type type, string eventName) |
1026 | 1060 | { |
1027 | 1061 | if (type == null) |
@@ -1067,6 +1101,9 @@ public static IObservable<EventPattern<TSender, TEventArgs>> FromEventPattern<TS |
1067 | 1101 | /// </para> |
1068 | 1102 | /// </remarks> |
1069 | 1103 | /// <seealso cref="ToEventPattern"/> |
| 1104 | +#if HAS_TRIMMABILITY_ATTRIBUTES |
| 1105 | + [RequiresUnreferencedCode(Constants_Core.EventReflectionTrimIncompatibilityMessage)] |
| 1106 | +#endif |
1070 | 1107 | public static IObservable<EventPattern<TSender, TEventArgs>> FromEventPattern<TSender, TEventArgs>(Type type, string eventName, IScheduler scheduler) |
1071 | 1108 | { |
1072 | 1109 | if (type == null) |
|
0 commit comments