We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51bd147 + 4773670 commit df7d27aCopy full SHA for df7d27a
Parse/Internal/ReflectionHelpers.cs
@@ -47,9 +47,10 @@ internal static bool IsConstructedGenericType(this Type type) {
47
#endif
48
}
49
50
- internal static IEnumerable<ConstructorInfo> GetConstructors(this Type type) {
51
-#if UNITY
52
- return type.GetConstructors();
+ internal static IEnumerable<ConstructorInfo> GetConstructors(this Type type) {
+#if UNITY
+ BindingFlags searchFlags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance;
53
+ return type.GetConstructors(searchFlags);
54
#else
55
return type.GetTypeInfo().DeclaredConstructors
56
.Where(c => (c.Attributes & MethodAttributes.Static) == 0);
0 commit comments