Skip to content

Commit 3e57bc7

Browse files
benaadamsMichalStrehovsky
authored andcommitted
Seal classes
1 parent c13452d commit 3e57bc7

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

frameworks/CSharp/aspnetcore/PlatformBenchmarks/BenchmarkApplication.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace PlatformBenchmarks;
1414

15-
public partial class BenchmarkApplication
15+
public sealed partial class BenchmarkApplication
1616
{
1717
public static ReadOnlySpan<byte> ApplicationName => "Kestrel Platform-Level Application"u8;
1818

frameworks/CSharp/aspnetcore/PlatformBenchmarks/Data/BatchUpdateString.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace PlatformBenchmarks;
55

6-
internal class BatchUpdateString
6+
internal sealed class BatchUpdateString
77
{
88
private const int MaxBatch = 500;
99

frameworks/CSharp/aspnetcore/PlatformBenchmarks/Data/Providers/RawDbMySqlConnector.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace PlatformBenchmarks
1515
{
1616
// Is semantically identical to RawDbNpgsql.cs.
1717
// If you are changing RawDbMySqlConnector.cs, also consider changing RawDbNpgsql.cs.
18-
public class RawDb
18+
public sealed class RawDb
1919
{
2020
private readonly ConcurrentRandom _random;
2121
private readonly string _connectionString;

frameworks/CSharp/aspnetcore/PlatformBenchmarks/Data/Providers/RawDbNpgsql.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace PlatformBenchmarks
1515
{
1616
// Is semantically identical to RawDbMySqlConnector.cs.
1717
// If you are changing RawDbNpgsql.cs, also consider changing RawDbMySqlConnector.cs.
18-
public class RawDb
18+
public sealed class RawDb
1919
{
2020
private readonly ConcurrentRandom _random;
2121
private readonly string _connectionString;

frameworks/CSharp/aspnetcore/PlatformBenchmarks/Data/Random.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace PlatformBenchmarks;
77

8-
public class ConcurrentRandom
8+
public sealed class ConcurrentRandom
99
{
1010
private static int nextSeed = 0;
1111

frameworks/CSharp/aspnetcore/PlatformBenchmarks/HttpApplication.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static class HttpApplicationConnectionBuilderExtensions
1414
}
1515
}
1616

17-
public class HttpApplication<TConnection> where TConnection : IHttpConnection, new()
17+
public sealed class HttpApplication<TConnection> where TConnection : IHttpConnection, new()
1818
{
1919
public Task ExecuteAsync(ConnectionContext connection)
2020
{

frameworks/CSharp/aspnetcore/PlatformBenchmarks/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace PlatformBenchmarks;
88

9-
public class Program
9+
public sealed class Program
1010
{
1111
public static string[] Args;
1212

frameworks/CSharp/aspnetcore/PlatformBenchmarks/Startup.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace PlatformBenchmarks;
55

6-
public class Startup
6+
public sealed class Startup
77
{
88
public void Configure(IApplicationBuilder app)
99
{

0 commit comments

Comments
 (0)