From 2da756aa5304d91fbcfb7469968b2fd6fca20fe3 Mon Sep 17 00:00:00 2001 From: Jumar Macato Date: Fri, 22 Feb 2019 19:17:49 +0800 Subject: [PATCH] Make parse function in Cue.cs explicitly typed in order for Xaml-IL tocorrectly compile and avoid unnecessary boxing. --- src/Avalonia.Animation/Cue.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Animation/Cue.cs b/src/Avalonia.Animation/Cue.cs index 52d1609cf9..7da7a9382b 100644 --- a/src/Avalonia.Animation/Cue.cs +++ b/src/Avalonia.Animation/Cue.cs @@ -30,7 +30,7 @@ namespace Avalonia.Animation /// /// Parses a string to a object. /// - public static object Parse(string value, CultureInfo culture) + public static Cue Parse(string value, CultureInfo culture) { string v = value; @@ -70,7 +70,7 @@ namespace Avalonia.Animation } } - public class CueTypeConverter : TypeConverter + public class CueTypeConverter : TypeConverter { public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {