public LicenseInfo GetInfo() { var license = License.VerifiedLicense(); if (license == null) { return null; } var licenseNode = license.SelectSingleNode("/verifiedlicense/license"); var licenseInfo = new LicenseInfo { Id = XmlUtil.GetChildValue("id", licenseNode), Expiration = DateUtil.IsoDateToDateTime(XmlUtil.GetChildValue("expiration", licenseNode)), Version = int.Parse(XmlUtil.GetChildValue("version", licenseNode)), Licensee = XmlUtil.GetChildValue("licensee", licenseNode), Country = XmlUtil.GetChildValue("country", licenseNode) }; return licenseInfo; }
public LicenseInfo GetInfo() { var license = License.VerifiedLicense(); if (license == null) { return(null); } var licenseNode = license.SelectSingleNode("/verifiedlicense/license"); var licenseInfo = new LicenseInfo { Id = XmlUtil.GetChildValue("id", licenseNode), Expiration = DateUtil.IsoDateToDateTime(XmlUtil.GetChildValue("expiration", licenseNode)), Version = int.Parse(XmlUtil.GetChildValue("version", licenseNode)), Licensee = XmlUtil.GetChildValue("licensee", licenseNode), Country = XmlUtil.GetChildValue("country", licenseNode) }; return(licenseInfo); }