Browse Source
Merge pull request #8914 from workgroupengineering/fixes/Warnings/ControlCatalog/CS8767
fix: CS8667 Nullability of reference types in type of
pull/8920/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
samples/ControlCatalog/Converter/HexConverter.cs
|
|
|
@ -7,7 +7,7 @@ namespace ControlCatalog.Converter; |
|
|
|
|
|
|
|
public class HexConverter : IValueConverter |
|
|
|
{ |
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
var str = value?.ToString(); |
|
|
|
if (str == null) |
|
|
|
@ -18,7 +18,7 @@ public class HexConverter : IValueConverter |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
|