Dotfuscator User's Guide
Including Fields

Field inclusion is only valid for pruning triggers and pruning conditional includes.

Fields may be selected by first selecting the type using the <type> element, then providing a rule for selecting fields. Fields may be selected by name and attribute specifier (as explained in the type section above). Allowed attribute specifiers are:

Allowed attribute specifiers are:
Copy Code
public
private
static
assembly
family
familyandassembly
familyorassembly
notserialized

If the attribute specifier is not set explicitly, then field attribute will not be used at all as a matching criterion.

The following example selects all static fields starting with "ENUM_":

Static Fields Starting with "ENUM_":
Copy Code
<field regex="true" name="ENUM_.*" speclist="+static"/>

Global fields may be specified by using a special type selector with the name Module:mod_name where mod_name is the name of the module containing the global field.

 

 


© 2016 PreEmptive Solutions, LLC. All Rights Reserved.

www.preemptive.com