Skip to content

Commit e9532a2

Browse files
committed
Update Filler.cs
1 parent 97291bf commit e9532a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ObjectFiller/Filler.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ private void FillInternal(object objectToFill)
131131
}
132132

133133
var properties = objectToFill.GetType().GetProperties()
134-
.Where(x =>x.CanWrite || ContainsProperty(currentSetup.PropertiesWritePrivateSetter,x)
135-
&& GetSetMethodOnDeclaringType(x) != null)
136-
.ToArray();
134+
.Where(x => GetSetMethodOnDeclaringType(x) != null).ToArray();
137135

138136
if (properties.Length == 0) return;
139137

0 commit comments

Comments
 (0)