diff options
Diffstat (limited to 'mcs/class/System.Xaml/System.Windows.Markup/ValueSerializer.cs')
-rw-r--r-- | mcs/class/System.Xaml/System.Windows.Markup/ValueSerializer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System.Xaml/System.Windows.Markup/ValueSerializer.cs b/mcs/class/System.Xaml/System.Windows.Markup/ValueSerializer.cs index d3a001de3d2..b625bb98444 100644 --- a/mcs/class/System.Xaml/System.Windows.Markup/ValueSerializer.cs +++ b/mcs/class/System.Xaml/System.Windows.Markup/ValueSerializer.cs @@ -56,8 +56,8 @@ namespace System.Windows.Markup if (context != null) throw new NotImplementedException (); - // MarkupExtension is serialized without ValueSerializer. - if (typeof (MarkupExtension).IsAssignableFrom (type)) + // Standard MarkupExtensions are serialized without ValueSerializer. + if (typeof (MarkupExtension).IsAssignableFrom (type) && XamlLanguage.AllTypes.Any (x => x.UnderlyingType == type)) return null; var tc = TypeDescriptor.GetConverter (type); |