mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 06:47:21 +00:00
Adopted further C# 14 and .NET 10 features (#1158)
This commit is contained in:
1 parent
f649febf88
commit
f0fa1411c8
40 files changed
+545
-56
No files matched your search
@@ -17,8 +17,6 @@ namespace AIStudio.Models;
|
||||
/// </remarks>
|
||||
public abstract class ModelFamily
|
||||
{
|
||||
private IReadOnlyList<ModelRule>? declaredRules;
|
||||
|
||||
/// <summary>
|
||||
/// Who builds the models of this family.
|
||||
/// </summary>
|
||||
@@ -48,7 +46,7 @@ public abstract class ModelFamily
|
||||
/// <summary>
|
||||
/// The rules this family states, worked out once.
|
||||
/// </summary>
|
||||
public IReadOnlyList<ModelRule> Rules => this.declaredRules ??= this.BuildRules();
|
||||
public IReadOnlyList<ModelRule> Rules => field ??= this.BuildRules();
|
||||
|
||||
/// <summary>
|
||||
/// Adjusts a profile in a way no pattern can express.
|
||||
|
||||
Reference in new issue
Block a user