Share via


Excluding Fields

Fields may be excluded by first selecting the type using the <type> element, then providing a rule for selecting fields to exclude. Fields may be excluded by name and attribute specifier (as explained in the type section above).

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 “ENUM_”:

<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.

© 2002-2007 PreEmptive Solutions. All rights reserved.