|Dotfuscator > References > Configuration File Reference > Custom Rules Reference > Inclusion Rules > 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:||
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 "
|Static Fields Starting with "ENUM_":||
<field regex="true" name="ENUM_.*" speclist="+static"/>
Global fields may be specified by using a special type selector with the name
mod_name is the name of the module containing the global field.