/// <summary> /// A constuctor that makes a Comic object. /// </summary> /// <param name="title">The comics title.</param> /// <param name="series">The series the comic belongs to.</param> /// <param name="seriesNumber">The number the comic is in the series.</param> /// <param name="authors">The autor(s) that wrote this comic</param> /// <param name="publisher">The publisher that published the comic.</param> public DComic(string title, DSeries series, int?seriesNumber, List <DAuthor> authors, DPublisher publisher, int amountAvailable) { Title = title; Series = series; SeriesNumber = seriesNumber; Authors = authors; Publisher = publisher; }
/// <summary> /// Transforms a list of DPublisher objects into a list of Publisher objects. /// </summary> /// <param name="dPublisher">DPublishers to transform.</param> /// <returns>A list of of Publisher objects.</returns> public static Publisher ToPublisher(DPublisher dPublisher) { return(new Publisher(dPublisher.Name)); }