Skip to content

Commit e210879

Browse files
committed
Fixed an error that occurred when there was no type in ReadOnly lists.
#148
1 parent 524fa32 commit e210879

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FmgLib.MauiMarkup.Generator/Extensions/ExtensionGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ void GenerateExtensionMethod(IPropertySymbol propertySymbol, bool isOnlyList = f
217217
namedListType.BaseType.TypeArguments.Length == 1)
218218
typeName = namedListType.BaseType.TypeArguments[0].ToDisplayString();
219219

220-
GenerateExtensionMethod_ContentProp_List(info, typeName);
220+
if (!string.IsNullOrEmpty(typeName))
221+
GenerateExtensionMethod_ContentProp_List(info, typeName);
221222
}
222223
else
223224
{

0 commit comments

Comments
 (0)