For selected programming languages, license list assignments and trap properties can also be defined directly in the source code. By default, these have priority over the protection entries contained in the protect.yaml protection definition.
Licensing
License list assignments and the exception of encryption can be set via Licensing attribute.
LicenseList: N : Assignment of the method of a specific license list N.
Encryption: True/False : Optional disabling of encryption using False.
[Licensing(LicenseList=1)]
private static void SomeFunction()
{
...
}
[Licensing(Encryption=False)]
private static void Bar()
{
...
}
Protection parameter
Additional protection options can be controlled via Protection attribute:
Trap: True/False: Method is explicitly a trap / is excluded from automatic trap generation.
[Protection(Trap=False)]
private static void SomeFunction()...