Can you replace variable's string text with method? #50947
Unanswered
tilenzalar
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Yes, replace the node with a new 'InvocationExpression' you create using SyntaxFactory. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this part of code that replaces all hardcoded strings in solution that have text "Quantity" with "Quantity Roslyn". Now I want to change the code so that I replace all hardcoded strings that have text "Quantity" with a function, let's say: someFunction("something").
So for example the code does this:
Is there any way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions