-
Notifications
You must be signed in to change notification settings - Fork 4
Coding
When rules are compiled from an XML rule file the content of XML elements where
, select
, update
and insert
is used as the bodies of the new methods. The compiled methods are called when the rule is run.
Each method has parameter Source
and some also have parameter Target
. Which form these parameters represent depends on the method. The Source
form cannot be modified - only the Target
form will ever accept any changes. Which properties and methods are available depends on which type of form each one represents.
Beside normal C# language features several global helper objects and methods can be used from any of the methods. It is not allowed to directly use any general classes that are part of .NET Framework, however.
The current list of forbidden tokes is: System.
, Microsoft.
, Patcher.
, .GetType(
and typeof(
.
For assistance when dealing with errors that may occur during rule compilation and execution see troubleshooting.
© 2015 Unforbidable Works