Listing 5 A license object derived from System.ComponentModel.License
using System; using System.ComponentModel; public class CustomLicense : License { string licenseKey; bool isEvaluation; public override void Dispose() {} public override string LicenseKey { get { return licenseKey; } } public bool IsEvaluation { get { return isEvaluation; } } public CustomLicense(string licenseKey, bool isEvaluation) { this.licenseKey = licenseKey; this.isEvaluation = isEvaluation; } }