-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expression Functions
Rule patterns in ConfuserEx project are consists of different expression functions.
There are 2 kinds of literal expressions in the rule patterns :
- Boolean literals :
true
andfalse
- String literals, the literals are enclosed with quotes (
'
and"
). Characters can be escaped with blackslashes(\
). For example,'NS1.MyClass'
.
There are 3 operators in the rule patterns :
and
or
not
Each rule patterns should evaluate to a boolean value. True indicates the rule would applies to the item being evaluated.
ConfuserEx supports the following functions:
This function returns true
if the type being evaluated (or declaring type for type members)
has specified signature.
This function returns true
if the item being evaluated has specified signature.
This function returns true
if the item being evaluated is visible outside the assembly.
This function returns true
if the signature of the item being evaluated matches
with the specified RegEx.
This function returns true
if the name of the item being evaluated matches
with the specified RegEx.
This function returns true
if the name of the type being evaluated (or declaring type for type members)
matches with the specified RegEx.
This function returns true
if the item being evaluated has the specified type.
The supported types are type
, method
, field
, property
, event
and module
.
This function returns true
if the module of the item being evaluated has the specified name.
This function returns true
if the name of the item being evaluated has the specified name.
This function returns true
if the type being evaluated (or declaring type for type members)
has specified namespace.
This function returns true
if the type being evaluated inherits from the specified type.
This function returns true
if the type being evaluated is of the specified special types.