Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNewell Clark <newellofthefuture@gmail.com>2021-10-05 13:39:21 +0300
committerGitHub <noreply@github.com>2021-10-05 13:39:21 +0300
commit3bed53762a08a1bfa10c2ce05005c22e3d81bd54 (patch)
treebd3d475553a2159e0426a4a484cb0d8a86a40adb /src/tasks/WasmAppBuilder/WasmAppBuilder.cs
parentfabace862180230c746fa712e725f4eb74cca626 (diff)
Seal internal types in runtime tasks (#59935)
* Seal classes in WorkloadBuildTasks * Seal classes in AotCompilerTask * Seal classes in WasmBuildTasks and Crossgen2Tasks * Seal types in AppleAppBuilder
Diffstat (limited to 'src/tasks/WasmAppBuilder/WasmAppBuilder.cs')
-rw-r--r--src/tasks/WasmAppBuilder/WasmAppBuilder.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tasks/WasmAppBuilder/WasmAppBuilder.cs b/src/tasks/WasmAppBuilder/WasmAppBuilder.cs
index 58b4b9259e6..e356291d83a 100644
--- a/src/tasks/WasmAppBuilder/WasmAppBuilder.cs
+++ b/src/tasks/WasmAppBuilder/WasmAppBuilder.cs
@@ -59,7 +59,7 @@ public class WasmAppBuilder : Task
// </summary>
public ITaskItem[]? ExtraConfig { get; set; }
- private class WasmAppConfig
+ private sealed class WasmAppConfig
{
[JsonPropertyName("assembly_root")]
public string AssemblyRoot { get; set; } = "managed";
@@ -86,12 +86,12 @@ public class WasmAppBuilder : Task
public string Name { get; init; }
}
- private class AssemblyEntry : AssetEntry
+ private sealed class AssemblyEntry : AssetEntry
{
public AssemblyEntry(string name) : base(name, "assembly") {}
}
- private class SatelliteAssemblyEntry : AssetEntry
+ private sealed class SatelliteAssemblyEntry : AssetEntry
{
public SatelliteAssemblyEntry(string name, string culture) : base(name, "resource")
{
@@ -102,14 +102,14 @@ public class WasmAppBuilder : Task
public string CultureName { get; set; }
}
- private class VfsEntry : AssetEntry
+ private sealed class VfsEntry : AssetEntry
{
public VfsEntry(string name) : base(name, "vfs") {}
[JsonPropertyName("virtual_path")]
public string? VirtualPath { get; set; }
}
- private class IcuData : AssetEntry
+ private sealed class IcuData : AssetEntry
{
public IcuData(string name) : base(name, "icu") {}
[JsonPropertyName("load_remote")]