Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit f36acb3

Browse files
committed
fix simple types to be detected as get only collections
1 parent f8cbb40 commit f36acb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MappingGenerator/MappingGenerator/MappingGenerator/Mappings/MappingImplementors/SingleParameterForeachMappingMethodImplementor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using MappingGenerator.RoslynHelpers;
1+
using MappingGenerator.RoslynHelpers;
22
using Microsoft.CodeAnalysis;
33
using Microsoft.CodeAnalysis.Editing;
44
using Microsoft.CodeAnalysis.Formatting;
@@ -33,7 +33,7 @@ private bool ContainsCollectionWithoutSetter(ITypeSymbol type)
3333
{
3434
foreach (var member in type.GetMembers().Where(ObjectHelper.IsPublicPropertySymbol).OfType<IPropertySymbol>())
3535
{
36-
if (ObjectHelper.IsSimpleType(member.Type) && !MappingHelper.IsCollection(member.Type))
36+
if (ObjectHelper.IsSimpleType(member.Type) || !MappingHelper.IsCollection(member.Type))
3737
{
3838
continue;
3939
}

0 commit comments

Comments
 (0)