Skip to content

Commit 4ead626

Browse files
authored
Switched LangVersion from preview to 13.0 (#8014)
1 parent b2dc87e commit 4ead626

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<LangVersion>preview</LangVersion>
4+
<LangVersion>13.0</LangVersion>
55
<Version Condition="$(Version) == ''">0.0.0</Version>
66
<NoWarn>$(NoWarn);CS0436;RS0026;RS0027;RS0041;AD0001;CS1591;NU5104;NU5128;NU5501</NoWarn>
77
<WarningsAsErrors>$(WarningsAsErrors);nullable</WarningsAsErrors>

src/GreenDonut/src/GreenDonut.Data.Primitives/SortBy.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public SortBy(Expression<Func<TEntity, TValue>> keySelector, bool ascending = tr
3535
/// <summary>
3636
/// Gets the sort direction.
3737
/// </summary>
38-
public bool Ascending { get => field; init; }
38+
public bool Ascending { get; init; }
3939

4040
/// <summary>
4141
/// Applies the sort operation to the queryable.

src/HotChocolate/CostAnalysis/src/CostAnalysis/Options/RequestCostOptions.cs

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace HotChocolate.CostAnalysis;
55
/// </summary>
66
public record RequestCostOptions
77
{
8+
private bool _enforceCostLimits;
9+
private bool _skipAnalyzer;
10+
811
/// <summary>
912
/// Request options for cost analysis.
1013
/// </summary>
@@ -79,15 +82,15 @@ public RequestCostOptions(
7982
/// </summary>
8083
public bool EnforceCostLimits
8184
{
82-
get;
85+
get => _enforceCostLimits;
8386
init
8487
{
8588
if (value)
8689
{
8790
SkipAnalyzer = false;
8891
}
8992

90-
field = value;
93+
_enforceCostLimits = value;
9194
}
9295
}
9396

@@ -96,15 +99,15 @@ public bool EnforceCostLimits
9699
/// </summary>
97100
public bool SkipAnalyzer
98101
{
99-
get;
102+
get => _skipAnalyzer;
100103
init
101104
{
102105
if (value)
103106
{
104107
EnforceCostLimits = false;
105108
}
106109

107-
field = value;
110+
_skipAnalyzer = value;
108111
}
109112
}
110113

0 commit comments

Comments
 (0)