Skip to content

Commit b73ec01

Browse files
committed
Sealed classes that should not be inheritable from
1 parent 1a8ab4d commit b73ec01

20 files changed

Lines changed: 20 additions & 20 deletions

src/SA3D.Common/Converters/BAMS16Converter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace SA3D.Common.Converters
77
/// <summary>
88
/// A valueconverter for 16 bit BAMS angles
99
/// </summary>
10-
public class BAMS16Converter : TypeConverter
10+
public sealed class BAMS16Converter : TypeConverter
1111
{
1212
/// <inheritdoc/>
1313
public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)

src/SA3D.Common/Converters/BAMS32Converter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace SA3D.Common.Converters
77
/// <summary>
88
/// A valueconverter for 32 bit BAMS angles
99
/// </summary>
10-
public class BAMS32Converter : TypeConverter
10+
public sealed class BAMS32Converter : TypeConverter
1111
{
1212
/// <inheritdoc/>
1313
public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)

src/SA3D.Common/Converters/Int32HexConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace SA3D.Common.Converters
77
/// <summary>
88
/// A valueconverter for signed hexadecimal 32 bit numbers
99
/// </summary>
10-
public class Int32HexConverter : TypeConverter
10+
public sealed class Int32HexConverter : TypeConverter
1111
{
1212
/// <inheritdoc/>
1313
public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)

src/SA3D.Common/Converters/QuaternionConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SA3D.Common.Converters
99
/// <summary>
1010
/// A valueconverter for <see cref="Quaternion"/>
1111
/// </summary>
12-
public class QuaternionConverter : ExpandableObjectConverter
12+
public sealed class QuaternionConverter : ExpandableObjectConverter
1313
{
1414
/// <inheritdoc/>
1515
public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)

src/SA3D.Common/Converters/StringConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace SA3D.Common.Converters
77
/// <summary>
88
/// A valueconverter for strings
99
/// </summary>
10-
public class StringConverter<T> : TypeConverter
10+
public sealed class StringConverter<T> : TypeConverter
1111
{
1212
/// <inheritdoc/>
1313
public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)

src/SA3D.Common/Converters/UInt16HexConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace SA3D.Common.Converters
77
/// <summary>
88
/// A valueconverter for unsigned hexadecimal 16 bit numbers
99
/// </summary>
10-
public class UInt16HexConverter : TypeConverter
10+
public sealed class UInt16HexConverter : TypeConverter
1111
{
1212
/// <inheritdoc/>
1313
public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)

src/SA3D.Common/Converters/UInt32HexConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace SA3D.Common.Converters
77
/// <summary>
88
/// A valueconverter for unsigned hexadecimal 32 bit numbers
99
/// </summary>
10-
public class UInt32HexConverter : TypeConverter
10+
public sealed class UInt32HexConverter : TypeConverter
1111
{
1212
/// <inheritdoc/>
1313
public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)

src/SA3D.Common/Converters/UInt8HexConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace SA3D.Common.Converters
77
/// <summary>
88
/// A valueconverter for unsigned hexadecimal 16 bit numbers
99
/// </summary>
10-
public class UInt8HexConverter : TypeConverter
10+
public sealed class UInt8HexConverter : TypeConverter
1111
{
1212
/// <inheritdoc/>
1313
public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)

src/SA3D.Common/Converters/Vector2Converter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SA3D.Common.Converters
99
/// <summary>
1010
/// A valueconverter for <see cref="Vector2"/>
1111
/// </summary>
12-
public class Vector2Converter : ExpandableObjectConverter
12+
public sealed class Vector2Converter : ExpandableObjectConverter
1313
{
1414
/// <inheritdoc/>
1515
public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)

src/SA3D.Common/Converters/Vector3Converter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SA3D.Common.Converters
99
/// <summary>
1010
/// A valueconverter for <see cref="Vector3"/>
1111
/// </summary>
12-
public class Vector3Converter : ExpandableObjectConverter
12+
public sealed class Vector3Converter : ExpandableObjectConverter
1313
{
1414
/// <inheritdoc/>
1515
public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)

0 commit comments

Comments
 (0)