Skip to content

Commit 51f4dc0

Browse files
committed
Seal MySqlCommandBuilder and MySqlConversionException.
These types were not designed for inheritance.
1 parent f1a9918 commit 51f4dc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/MySqlConnector/MySqlCommandBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace MySqlConnector
1111
{
12-
public class MySqlCommandBuilder : DbCommandBuilder
12+
public sealed class MySqlCommandBuilder : DbCommandBuilder
1313
{
1414
public static void DeriveParameters(MySqlCommand command) => DeriveParametersAsync(IOBehavior.Synchronous, command, CancellationToken.None).GetAwaiter().GetResult();
1515
public static Task DeriveParametersAsync(MySqlCommand command) => DeriveParametersAsync(command?.Connection?.AsyncIOBehavior ?? IOBehavior.Asynchronous, command!, CancellationToken.None);

src/MySqlConnector/MySqlConversionException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace MySqlConnector
77
/// <see cref="MySqlConversionException"/> is thrown when a MySQL value can't be converted to another type.
88
/// </summary>
99
[Serializable]
10-
public class MySqlConversionException : Exception
10+
public sealed class MySqlConversionException : Exception
1111
{
1212
/// <summary>
1313
/// Initializes a new instance of <see cref="MySqlConversionException"/>.

0 commit comments

Comments
 (0)