Esempio n. 1
0
        public static void ImportPublication <TPublishedBy, TPublishedTime>(this IPublication <TPublishedBy, TPublishedTime> publication,
                                                                            string by, string time, IFormatProvider provider = null)
            where TPublishedBy : IEquatable <TPublishedBy>
            where TPublishedTime : struct
        {
            publication.ImportCreation(by, time, provider);

            publication.PublishedBy   = by.ToCreatedBy <TPublishedBy>(provider);
            publication.PublishedTime = time.ToCreatedTime <TPublishedTime>(provider);
        }