Browse Source

Merge pull request #2843 from ElektroKill/fix/issue2842

fixes https://github.com/icsharpcode/ILSpy/issues/2842
pull/2845/head
Siegfried Pammer 3 years ago committed by GitHub
parent
commit
426d362383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ICSharpCode.Decompiler/CSharp/RequiredNamespaceCollector.cs

2
ICSharpCode.Decompiler/CSharp/RequiredNamespaceCollector.cs

@ -137,11 +137,13 @@ namespace ICSharpCode.Decompiler.CSharp @@ -137,11 +137,13 @@ namespace ICSharpCode.Decompiler.CSharp
break;
case IProperty property:
HandleAttributes(property.GetAttributes());
CollectNamespacesForTypeReference(property.ReturnType);
CollectNamespaces(property.Getter, module, mappingInfo);
CollectNamespaces(property.Setter, module, mappingInfo);
break;
case IEvent @event:
HandleAttributes(@event.GetAttributes());
CollectNamespacesForTypeReference(@event.ReturnType);
CollectNamespaces(@event.AddAccessor, module, mappingInfo);
CollectNamespaces(@event.RemoveAccessor, module, mappingInfo);
break;

Loading…
Cancel
Save