mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
move classes to portable project
This commit is contained in:
18
Emby.Common.Implementations/Reflection/AssemblyInfo.cs
Normal file
18
Emby.Common.Implementations/Reflection/AssemblyInfo.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using MediaBrowser.Model.Reflection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Emby.Common.Implementations.Reflection
|
||||
{
|
||||
public class AssemblyInfo : IAssemblyInfo
|
||||
{
|
||||
public Stream GetManifestResourceStream(Type type, string resource)
|
||||
{
|
||||
#if NET46
|
||||
return type.Assembly.GetManifestResourceStream(resource);
|
||||
#endif
|
||||
return type.GetTypeInfo().Assembly.GetManifestResourceStream(resource);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user