We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f82047c + 388602b commit 120ac3cCopy full SHA for 120ac3c
1 file changed
src/Mapster/Utils/ReflectionUtils.cs
@@ -464,7 +464,7 @@ public static bool IsNotSelfCreation(this Type type)
464
if (type == typeof(Type) || type.BaseType == typeof(MulticastDelegate))
465
return true;
466
467
- return type.GetFieldsAndProperties().Any(it => (it.SetterModifier & (AccessModifier.Public | AccessModifier.NonPublic)) == 0);
+ return type.GetFieldsAndProperties().All(it => (it.SetterModifier & (AccessModifier.Public | AccessModifier.NonPublic)) == 0);
468
}
469
470
0 commit comments