Declaratively mark methods to be protected/licensed via attributes (FAQ119)

Is there a way I can indicate which methods I wish to protect via my code so I dont have to regenerate my .SLMCfg file every time my methods names change (e.g., as a result of obfuscation or refactoring)?

SLPS Code Protector provides a FeatureAttribute which is used as follows:

public class MyCode
{
    [Feature( "FeatureA" )]
    public void WillBeTiedToFeatureA()
    {
    }

    [Feature]
    public void WillRequireAnyFormOfValidLicense()
    {
    }

    [Protect]
    public void WillBeProtectedButNotRequireALicense()
    {
    }
}

See How To: Declaratively mark methods to be protected or licensed in your code for further details regarding declarative protection.

Link to this

FAQ119

You can link to this item directly, using the shorter URL support.inishtech.com/FAQ119.