I
I
ichernob2015-09-10 16:19:30
Android
ichernob, 2015-09-10 16:19:30

Is it possible to replace all calls to String.Format() with calls to another method?

There are several hundred places in the project where String.Format() is called. Is it possible to somehow replace them with a call to some other method? And then I'm too lazy to edit the whole project with my hands.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oxoron, 2015-09-10
@ichernob

Looking for all files with .cs extension.
There banal Replace you replace "String.Format" with the necessary method. If necessary, add "using specialNamespace;" to the beginning of the file.
A one-time utility is written either on PS or on the sharp itself.

D
Dmitry Kovalsky, 2015-09-10
@dmitryKovalskiy

If your input parameters are the same, then you can use the banal Find&Replace. However, your method most likely lies in a non-standard namespace and most likely even a smart replacement will break Build

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question