Browse Source
Make parse function in Cue.cs explicitly typed in order for Xaml-IL tocorrectly compile and avoid unnecessary boxing.
pull/2324/head
Jumar Macato
7 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
1 changed files with
2 additions and
2 deletions
-
src/Avalonia.Animation/Cue.cs
|
|
|
@ -30,7 +30,7 @@ namespace Avalonia.Animation |
|
|
|
/// <summary>
|
|
|
|
/// Parses a string to a <see cref="Cue"/> object.
|
|
|
|
/// </summary>
|
|
|
|
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) |
|
|
|
{ |
|
|
|
|