File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
components/TokenView/src/TokenView Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 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
+ #if NET8_0_OR_GREATER
6
+ using System . Diagnostics . CodeAnalysis ;
7
+ #endif
8
+
5
9
namespace CommunityToolkit . Labs . WinUI ;
6
10
7
11
public partial class TokenView : ListViewBase
@@ -15,6 +19,9 @@ protected override void OnItemsChanged(object e)
15
19
base . OnItemsChanged ( e ) ;
16
20
}
17
21
22
+ #if NET8_0_OR_GREATER
23
+ [ RequiresUnreferencedCode ( "This method accesses the 'Remove' method of the assigned items source collection in a trim-unsafe way." ) ]
24
+ #endif
18
25
private void ItemsSource_PropertyChanged ( DependencyObject sender , DependencyProperty dp )
19
26
{
20
27
// Use reflection to store a 'Remove' method of any possible collection in ItemsSource
Original file line number Diff line number Diff line change 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
+ #if NET8_0_OR_GREATER
6
+ using System . Diagnostics . CodeAnalysis ;
7
+ #endif
8
+
5
9
namespace CommunityToolkit . Labs . WinUI ;
6
10
7
11
/// <summary>
@@ -26,6 +30,9 @@ public partial class TokenView : ListViewBase
26
30
/// <summary>
27
31
/// Creates a new instance of the <see cref="TokenView"/> class.
28
32
/// </summary>
33
+ #if NET8_0_OR_GREATER
34
+ [ RequiresUnreferencedCode ( "This method accesses the 'Remove' method of the assigned items source collection in a trim-unsafe way." ) ]
35
+ #endif
29
36
public TokenView ( )
30
37
{
31
38
this . DefaultStyleKey = typeof ( TokenView ) ;
You can’t perform that action at this time.
0 commit comments