public License(v1_0.License license) { Id = license.Id; Name = license.Name; if (license.Text != null) { Text = new LicenseText { Content = license.Text }; } Url = license.Url; }
public License(v1_2.License license) { Id = license.Id; Name = license.Name; if (license.Text != null) { Text = new LicenseText { Content = license.Text.Content, ContentType = license.Text.ContentType, Encoding = license.Text.Encoding }; } Url = license.Url; }