Replace a method call
        Posted  
        
            by 
                deV
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by deV
        
        
        
        Published on 2011-01-08T11:11:37Z
        Indexed on 
            2011/01/08
            13:54 UTC
        
        
        Read the original article
        Hit count: 221
        
refactoring
Hi,
I want to achieve below task:
1. I need to search Html.Resource("key") in my application and replace it with GetResource("key",object)
2. The GetResource method has two parameters: the first parameter should be the same as the original method,"key" in this case, and I need to pass in the second parameter which is variable.
3. I need to replace only when the Html.Resource("key") occurs inside certain tags like  td and div else I need not replace it.
Thanks in advance
© Stack Overflow or respective owner