Skip to content

Commit

Permalink
fix on previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaeler committed Oct 27, 2021
1 parent cdc9b55 commit 7c3c3f5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/SharedGenerators/GeneratorManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ public SourceText GenerateINPCClass(string? @namespace, string className,
if (field == null || field.AttributeArguments == null ||
field.FieldType == null || field.FieldName == null) continue;

if (field.FieldTypeNamespace != null
&& field.FieldTypeNamespace != field.NamespaceName)
if (field.FieldTypeNamespaces != null)
{
gen.Usings.Add(field.FieldTypeNamespace);
if(field.NamespaceName != null)
field.FieldTypeNamespaces.Remove(field.NamespaceName);

foreach(var ns in field.FieldTypeNamespaces)
gen.Usings.Add(ns);
}

var partialMethod = field.AttributeArguments.ExtraNotify
Expand Down

0 comments on commit 7c3c3f5

Please sign in to comment.