Skip to content

Commit 504caaa

Browse files
authored
Enable nullability in ExceptionConverter (#7127)
1 parent ef3436a commit 504caaa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/System.Windows.Forms/src/System/Windows/Forms/PropertyGridInternal/PropertyDescriptorGridEntry.ExceptionConverter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#nullable disable
6-
75
using System.ComponentModel;
86
using System.Globalization;
97

@@ -16,7 +14,7 @@ internal partial class PropertyDescriptorGridEntry
1614
/// </summary>
1715
private class ExceptionConverter : TypeConverter
1816
{
19-
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
17+
public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
2018
{
2119
if (destinationType == typeof(string))
2220
{

0 commit comments

Comments
 (0)