This project is read-only.

ConfuserEx static class rule definition without namespace

Jul 11, 2014 at 2:40 PM
Edited Jul 11, 2014 at 2:41 PM
I have static class without namespace and inside of there is another static class, who should I define the rule in ConfuserEx 0.2.2:

internal static class _M
public static class S
     public static string _HandlerUrl()
        return "http://localhost:8888/hiearth";

so i've tried this one (and many others - didn't work):

<rule pattern="match-type-name('_M') and match-type-name('_M.S') and match-name('_HandlerUrl')" preset="none">
<protection id="ctrl flow" />
<protection id="anti dump" />
<protection id="anti debug" />
<protection id="constants" />
Jul 12, 2014 at 10:20 AM
Umm... Why are you asking about ConfuserEx in here?
Anyways, you could use some rules like "decl-type('_M/S') and name('_HandlerUrl')" to match that method.
Jul 14, 2014 at 8:26 AM
Thank you!