public ProjectProperties(IDictionary attributes) { // standard attributes AssemblyDescriptionAttribute assemblyDescriptionAttribute = attributes[typeof(AssemblyDescriptionAttribute)] as AssemblyDescriptionAttribute; if (assemblyDescriptionAttribute != null) { Description = new LocalizedString(defaultCulture, assemblyDescriptionAttribute.Description); } AssemblyTitleAttribute assemblyTitleAttribute = attributes[typeof(AssemblyTitleAttribute)] as AssemblyTitleAttribute; if (assemblyTitleAttribute != null) { Name = assemblyTitleAttribute.Title; } // DOAP attributes BugDatabaseAttribute bugDatabaseAttribute = attributes[typeof(BugDatabaseAttribute)] as BugDatabaseAttribute; if (bugDatabaseAttribute != null) { BugDatabase = bugDatabaseAttribute.BugDatabase; } CreatedAttribute createdAttribute = attributes[typeof(CreatedAttribute)] as CreatedAttribute; if (createdAttribute != null) { Created = createdAttribute.Created; } HomepageAttribute homepageAttribute = attributes[typeof(HomepageAttribute)] as HomepageAttribute; if (homepageAttribute != null) { Homepage = homepageAttribute.Homepage; } MailingListAttribute mailingListAttribute = attributes[typeof(MailingListAttribute)] as MailingListAttribute; if (mailingListAttribute != null) { MailingList = mailingListAttribute.MailingList; } ReleaseAttribute releaseAttribute = attributes[typeof(ReleaseAttribute)] as ReleaseAttribute; if (releaseAttribute != null) { Release = releaseAttribute.Release; } LicenseAttribute licenseAttribute = attributes[typeof(LicenseAttribute)] as LicenseAttribute; MaintainerAttribute MaintainerAttribute = attributes[typeof(MaintainerAttribute)] as MaintainerAttribute; ScreenshotsAttribute screenshotsAttribute = attributes[typeof(ScreenshotsAttribute)] as ScreenshotsAttribute; ShortDescriptionAttribute shortDescriptionAttribute = attributes[typeof(ShortDescriptionAttribute)] as ShortDescriptionAttribute; }
public HomepageAttribute(string homepage) { this.homepage = new Resource(homepage); }