Strings Or Macros in C#
<p>there are more that 90+  files(.cs) in my Application. </p>

<p>I have used a statement like  </p>

<pre><code>string str = MyMessages.IDS_STR_STRING1; 
MyMessages.IDS_STR_STRING2; 
MyMessages.IDS_STR_STRING3; 
</code></pre>

<p>in many files almost say some 40+ files.</p>

<p>Where MyMessages is a static class.</p>

<p>I now have added another function in this class say GetMyString(string identifier).
So now the above statmenets would change to </p>

<pre><code>MyMessages.GetMyString("IDS_STR_STRING1"); 
MyMessages.GetMyString("IDS_STR_STRING2"); 
MyMessages.GetMyString("IDS_STR_STRING3"); 
</code></pre>

<p>and so on.... </p>

<p>Now searching and replacing each statement is tedious and could lead to manual errors. 
Can i write any macro / a tool that would find the string and replace in the appropriate format ?</p>
