ImportedSymbolName prop is missing in the IUsingDirective interface

9 views
Skip to first unread message

Dmitry Dolotovskikh

unread,
Jun 15, 2024, 1:16:49 PM6/15/24
to resharper-plugins
Hi, I tried to upgrade my old plugin and faced with issue that ImportedSymbolName property has been gone from IUsingDirective. I used it to find a specific "using " reference. Follow code fix missing using reference in code:

if (!file.Imports.Any(d => d.ImportedSymbolName.QualifiedName.Equals(namespaceIdentifier)))
    file.AddImport(elementFactory.CreateUsingDirective(namespaceIdentifier));

But now I don't have any idea of how to redesign this code. Could somebody help?

Thank you in advance

Slava Trenogin

unread,
Jun 15, 2024, 1:57:53 PM6/15/24
to resharpe...@googlegroups.com
It's in the inherited interface IUsingSymbolDirective

--
You received this message because you are subscribed to the Google Groups "resharper-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resharper-plug...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/resharper-plugins/cce25a85-793a-4418-84bf-7d1d513d2044n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages