c# - Highlight dynamic calls in code -


i writing program in .net visual studio 2015. have problem our obfuscating tool not work when there dynamic calls anywhere in code, need rid of them.

is possible make visual studio highlight code uses dynamic? maybe give out warning or such?

edit:

i not have word dynamic anywhere in code, there still dynamic calls. come third party api use. example excerpt api:

public class thirdpartyclass {     public dynamic foo     {         { ... // returns instance of class fooclass }     }      ... } 

the class fooclass has method bar().

now let's @ point in code have instance of thirdpartyclass called tpc. following line of code

var barvar = tpc.foo.bar(); 

does dynamic call, because tpc.foo dynamic. remove dynamic call write instead

var barvar = ((fooclass)tpc.foo).bar(); 

this need in order make obfuscation tool work again. how find dynamic calls without going through code manually?

a way find dynamic usages in code temporary remove microsoft.csharp dependeny. lead compiler error on dynamic usage. maybee on other parts should reinclude after removing dynamic calls.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -