Dotfuscator User's Guide
Excluding Fields

Field exclusion is valid for Renaming only. Fields may be excluded by first selecting the type using the <type> element, then providing a rule for selecting fields to exclude. Fields may also be excluded by name and attribute specifier. 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 as a matching criterion. The following example selects all static fields starting with "ENUM_":

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

Field signatures are specified using the signature attribute. A signature specifies the type of the field:

A signature specifies the type of the field:
Copy Code
signature=""  <!-- empty signature -->

signature="int"

If the signature is not set explicitly, then the field type will not be used as a matching criterion.

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