diff --git a/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/DateOnlyConverter.cs b/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/DateOnlyConverter.cs
index c036846b97acd0..5bfe8223a86000 100644
--- a/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/DateOnlyConverter.cs
+++ b/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/DateOnlyConverter.cs
@@ -9,25 +9,21 @@
namespace System.ComponentModel
{
///
- /// Provides a type converter to convert
- /// objects to and from various other representations.
+ /// Provides a type converter to convert objects to and from various other representations.
///
public class DateOnlyConverter : TypeConverter
{
///
- /// Gets a value indicating whether this converter can convert an
- /// object in the given source type to a
+ /// Gets a value indicating whether this converter can convert an object in the given source type to a
/// object using the specified context.
///
+ ///
public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
{
return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
}
- ///
- /// Gets a value indicating whether this converter can convert an object
- /// to the given destination type using the context.
- ///
+ ///
public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
{
return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
@@ -36,6 +32,7 @@ public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(
///
/// Converts the given value object to a object.
///
+ ///
public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
{
if (value is string text)
@@ -77,6 +74,7 @@ public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(
///
/// Converts the given value object from a object using the arguments.
///
+ ///
public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
{
if (destinationType == typeof(string) && value is DateOnly dateOnly)
diff --git a/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TimeOnlyConverter.cs b/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TimeOnlyConverter.cs
index 7dc61debaf41db..4180508d2cc99a 100644
--- a/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TimeOnlyConverter.cs
+++ b/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TimeOnlyConverter.cs
@@ -9,25 +9,21 @@
namespace System.ComponentModel
{
///
- /// Provides a type converter to convert
- /// objects to and from various other representations.
+ /// Provides a type converter to convert objects to and from various other representations.
///
public class TimeOnlyConverter : TypeConverter
{
///
- /// Gets a value indicating whether this converter can convert an
- /// object in the given source type to a
+ /// Gets a value indicating whether this converter can convert an object in the given source type to a
/// object using the specified context.
///
+ ///
public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
{
return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
}
- ///
- /// Gets a value indicating whether this converter can convert an object
- /// to the given destination type using the context.
- ///
+ ///
public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
{
return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
@@ -36,6 +32,7 @@ public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(
///
/// Converts the given value object to a object.
///
+ ///
public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
{
if (value is string text)
@@ -77,6 +74,7 @@ public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(
///
/// Converts the given value object from a object using the arguments.
///
+ ///
public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
{
if (destinationType == typeof(string) && value is TimeOnly timeOnly)