fix merge conflicts

This commit is contained in:
Luke Pulverenti 2017-07-23 02:11:54 -04:00
parent 975a973d31
commit e99bc61d53
2 changed files with 12 additions and 8 deletions

View File

@ -176,7 +176,8 @@ namespace Emby.Common.Implementations
public PackageVersionClass SystemUpdateLevel
{
get {
get
{
#if BETA
return PackageVersionClass.Beta;
@ -556,7 +557,7 @@ namespace Emby.Common.Implementations
/// <param name="assembly">The assembly.</param>
/// <returns>IEnumerable{Type}.</returns>
/// <exception cref="System.ArgumentNullException">assembly</exception>
protected IEnumerable<Type> GetTypes(Assembly assembly)
protected List<Type> GetTypes(Assembly assembly)
{
if (assembly == null)
{
@ -568,21 +569,24 @@ namespace Emby.Common.Implementations
// This null checking really shouldn't be needed but adding it due to some
// unhandled exceptions in mono 5.0 that are a little hard to hunt down
var types = assembly.GetTypes() ?? new Type[] { };
return types.Where(t => t != null);
return types.Where(t => t != null).ToList();
}
catch (ReflectionTypeLoadException ex)
{
if (ex.LoaderExceptions != null)
{
foreach (var loaderException in ex.LoaderExceptions)
{
if (loaderException != null)
{
Logger.Error("LoaderException: " + loaderException.Message);
}
}
}
// If it fails we can still get a list of the Types it was able to resolve
var types = ex.Types ?? new Type[] { };
return types.Where(t => t != null);
return types.Where(t => t != null).ToList();
}
catch (Exception ex)
{

View File

@ -1,3 +1,3 @@
using System.Reflection;
[assembly: AssemblyVersion("3.2.25.0")]
[assembly: AssemblyVersion("3.2.25.12")]