Files
jellyfin-jellyfin-1/Emby.Common.Implementations/Reflection/AssemblyInfo.cs

19 lines
475 B
C#
Raw Normal View History

2016-10-26 02:01:42 -04:00
using System;
using System.IO;
using MediaBrowser.Model.Reflection;
2016-11-03 18:34:16 -04:00
using System.Reflection;
2016-10-26 02:01:42 -04:00
2016-11-03 18:34:16 -04:00
namespace Emby.Common.Implementations.Reflection
2016-10-26 02:01:42 -04:00
{
public class AssemblyInfo : IAssemblyInfo
{
public Stream GetManifestResourceStream(Type type, string resource)
{
2016-11-03 18:34:16 -04:00
#if NET46
2016-10-26 02:01:42 -04:00
return type.Assembly.GetManifestResourceStream(resource);
2016-11-03 18:34:16 -04:00
#endif
return type.GetTypeInfo().Assembly.GetManifestResourceStream(resource);
2016-10-26 02:01:42 -04:00
}
}
}