Since v0.4, ConfuserEx supports declarative obfuscation. You can use
System.Reflection.ObfuscationAttribute
to instruct ConfuserEx how to protect your application.
Currently, declarative obfuscation is only supported through the Command Line
Interface(Confuser.CLI.exe), by either passing the files to protect as
arguments, or simply drag-and-drop the files on Confuser.CLI.exe .
Item Hierarchy
Internally, ConfuserEx will construct a hierarchy tree for different items in
order to determine how the attributes will be applied.
This hierarchy will affect ApplyToMembers property.
Usage
The following code snippet demostrates all syntax of declarative obfuscation ConfuserEx currently supports: