File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
src/Avalonia.Controls.TreeDataGrid Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFramework >net5.0</ TargetFramework >
3
+ <TargetFrameworks >net6.0;net8.0</ TargetFrameworks >
4
4
<IsPackable >True</IsPackable >
5
5
<RootNamespace >Avalonia.Controls</RootNamespace >
6
6
</PropertyGroup >
12
12
13
13
<PackageReference Include =" System.Reactive" Version =" 6.0.0" />
14
14
</ItemGroup >
15
+
16
+ <!-- Trimming -->
17
+ <PropertyGroup Condition =" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" >
18
+ <SuppressTrimAnalysisWarnings >false</SuppressTrimAnalysisWarnings >
19
+ <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
20
+ <TrimmerSingleWarn >false</TrimmerSingleWarn >
21
+ <IsTrimmable >true</IsTrimmable >
22
+ <ILLinkTreatWarningsAsErrors >true</ILLinkTreatWarningsAsErrors >
23
+ </PropertyGroup >
24
+
25
+ <!-- AOT -->
26
+ <PropertyGroup Condition =" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))" >
27
+ <IsAotCompatible Condition =" '$(IsAotCompatible)' == ''" >true</IsAotCompatible >
28
+ </PropertyGroup >
29
+
15
30
</Project >
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ namespace Avalonia.Controls.Models.TreeDataGrid
15
15
internal class AnonymousRow < TModel > : IRow < TModel > , IModelIndexableRow
16
16
{
17
17
private int _modelIndex ;
18
- [ AllowNull ] private TModel _model ;
18
+ private TModel ? _model ;
19
19
20
20
public object ? Header => _modelIndex ;
21
- public TModel Model => _model ;
21
+ public TModel Model => _model ! ;
22
22
public int ModelIndex => _modelIndex ;
23
23
public IndexPath ModelIndexPath => _modelIndex ;
24
24
You can’t perform that action at this time.
0 commit comments