Skip to content

Commit 120ac3c

Browse files
authored
chore: Merge pull request #919 from DocSvartz/d31
fix IsNotSelfCreation detect
2 parents f82047c + 388602b commit 120ac3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Mapster/Utils/ReflectionUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public static bool IsNotSelfCreation(this Type type)
464464
if (type == typeof(Type) || type.BaseType == typeof(MulticastDelegate))
465465
return true;
466466

467-
return type.GetFieldsAndProperties().Any(it => (it.SetterModifier & (AccessModifier.Public | AccessModifier.NonPublic)) == 0);
467+
return type.GetFieldsAndProperties().All(it => (it.SetterModifier & (AccessModifier.Public | AccessModifier.NonPublic)) == 0);
468468
}
469469
}
470470
}

0 commit comments

Comments
 (0)