|
|
@ -1,5 +1,7 @@
|
|
|
|
|
|
|
|
#nullable enable
|
|
|
|
#pragma warning disable CS1591
|
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
using MediaBrowser.Model.IO;
|
|
|
|
using MediaBrowser.Model.IO;
|
|
|
@ -67,6 +69,16 @@ namespace MediaBrowser.Controller.Entities
|
|
|
|
where T : BaseItem
|
|
|
|
where T : BaseItem
|
|
|
|
where TU : BaseItem
|
|
|
|
where TU : BaseItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (source == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
throw new ArgumentNullException(nameof(source));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (dest == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
throw new ArgumentNullException(nameof(dest));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var destProps = typeof(TU).GetProperties().Where(x => x.CanWrite).ToList();
|
|
|
|
var destProps = typeof(TU).GetProperties().Where(x => x.CanWrite).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var sourceProp in typeof(T).GetProperties())
|
|
|
|
foreach (var sourceProp in typeof(T).GetProperties())
|
|
|
|