Skip to content

Commit 0e30f86

Browse files
committed
Fix runtime polymorphism is not work in Silverlight.
1 parent f0618bb commit 0e30f86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MsgPack/ReflectionAbstractions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ public static Type GetAttributeType( this Attribute source )
427427
public static string GetCultureName( this AssemblyName source )
428428
{
429429
#if NETFX_35 || NETFX_40 || SILVERLIGHT || UNITY
430-
return source.CultureInfo.Name;
430+
return source.CultureInfo == null ? null : source.CultureInfo.Name;
431431
#else
432432
return source.CultureName;
433433
#endif

0 commit comments

Comments
 (0)