Skip to content

Commit c6b5fe2

Browse files
committed
Fix constructor enumeration is not compat between full clr and winrt.
1 parent aff1b5d commit c6b5fe2

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
@@ -181,7 +181,7 @@ public static ConstructorInfo GetConstructor( this Type source, Type[] parameter
181181

182182
public static IEnumerable<ConstructorInfo> GetConstructors( this Type source )
183183
{
184-
return source.GetTypeInfo().DeclaredConstructors;
184+
return source.GetTypeInfo().DeclaredConstructors.Where( c => c.IsPublic );
185185
}
186186

187187
public static Type[] GetGenericArguments( this Type source )

0 commit comments

Comments
 (0)