Use C#9 features

This commit is contained in:
Tyrrrz
2020-12-14 17:45:42 +02:00
parent 9dda9cfc27
commit 63803f98aa
18 changed files with 99 additions and 71 deletions

View File

@@ -7,7 +7,7 @@ namespace DiscordChatExporter.Gui.Converters
[ValueConversion(typeof(TimeSpan?), typeof(DateTime?))]
public class TimeSpanToDateTimeConverter : IValueConverter
{
public static TimeSpanToDateTimeConverter Instance { get; } = new TimeSpanToDateTimeConverter();
public static TimeSpanToDateTimeConverter Instance { get; } = new();
public object? Convert(object value, Type targetType, object parameter, CultureInfo culture)
{