DeployLX Software Protection System

ObfuscationRule Compile Time Attribute

Defines a name based obfuscation rule.

ObfuscationRule Attribute

The ObfuscationRule attribute can be applied only at the assembly level to define a custom obfuscation selection rule.

Properties

Pattern

The search pattern. You can use the * and ? wildcards to match multiple and individual characters.

IsRegex

Indicates if the Pattern is treated as a regular expression.

Obfuscate

Indicates if matching members should be renamed or excluded.

Visibilities

A RuleVisibilities value expressing visibilities to match.

Public

Match any public members and types.

ProtectedInternal

Match protected internal members and types.

Protected

Match protected members and types.

Internal

Match internal members and types.

Private

Match private members and types.

Nested

Match types nested within other types.

All

Match all members and types.

AllPublic

Match public, protected and protected internal members and types.

AllPrivate

Match inernal and private members and types.

Types

A RuleObjectTypes value expressing the types to match. One of Classes, Methods, Events, Fields, Properties or All values.

Example Usage

<Attribute:ObfuscationRule(True,_
                           "*ViewModel",_
                           RuleVisibilities.All,_
                           RuleObjectTypes.Classes)>
[assembly: ObfuscationRule( true, 
                            "*ViewModel", 
                            RuleVisibilities.All, 
                            RuleObjectTypes.Classes )]

See Also