Silence IDE0290.
This rule recommends use of primary constructors. Apply the suggestions on simple POCOs, adjusting some to readonly/structs/records at the same time. For more complex classes, the use of primary constructors is more distracting than helpful, so silence the rule. IDEs can still offer fixes for using primary constructors, but it will not show up as a build issue.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
3de6a5fd5a
commit
36660b89e9
@@ -30,19 +30,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
public string UiLabel;
|
||||
}
|
||||
|
||||
sealed class SaveDirectory
|
||||
{
|
||||
public readonly Folder Folder;
|
||||
public readonly string DisplayName;
|
||||
public readonly MapClassification Classification;
|
||||
|
||||
public SaveDirectory(Folder folder, string displayName, MapClassification classification)
|
||||
{
|
||||
Folder = folder;
|
||||
DisplayName = displayName;
|
||||
Classification = classification;
|
||||
}
|
||||
}
|
||||
sealed record SaveDirectory(Folder Folder, string DisplayName, MapClassification Classification);
|
||||
|
||||
[FluentReference]
|
||||
const string SaveMapFailedTitle = "dialog-save-map-failed.title";
|
||||
|
||||
Reference in New Issue
Block a user