public ILicense Clone(ILicense license) { var ret = new SimpleLicense(); ret.LicenseAccessLevel = license.LicenseAccessLevel; ret.ApplicationName = license.ApplicationName; ret.ExpiryDate = license.ExpiryDate; ret.LicenseeName = license.LicenseeName; ret.RootModule = CloneModule(license.RootModule); return ret; }
public ILicense GetLicense() { var license = new SimpleLicense(); license.ApplicationName = AppName; license.ExpiryDate = ExpiryDate; license.LicenseAccessLevel = AccessLevel; license.LicenseeName = LicenseeName; license.RootModule = RootModule.GetModule(); return license; }