2016-10-26 06:01:42 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using MediaBrowser.Model.Reflection;
|
2016-11-03 22:34:16 +00:00
|
|
|
|
using System.Reflection;
|
2016-10-26 06:01:42 +00:00
|
|
|
|
|
2016-11-03 22:34:16 +00:00
|
|
|
|
namespace Emby.Common.Implementations.Reflection
|
2016-10-26 06:01:42 +00:00
|
|
|
|
{
|
|
|
|
|
public class AssemblyInfo : IAssemblyInfo
|
|
|
|
|
{
|
|
|
|
|
public Stream GetManifestResourceStream(Type type, string resource)
|
|
|
|
|
{
|
|
|
|
|
return type.Assembly.GetManifestResourceStream(resource);
|
|
|
|
|
}
|
2016-11-04 08:31:05 +00:00
|
|
|
|
|
|
|
|
|
public string[] GetManifestResourceNames(Type type)
|
|
|
|
|
{
|
|
|
|
|
return type.Assembly.GetManifestResourceNames();
|
|
|
|
|
}
|
2016-11-19 16:51:49 +00:00
|
|
|
|
|
|
|
|
|
public Assembly[] GetCurrentAssemblies()
|
|
|
|
|
{
|
|
|
|
|
return AppDomain.CurrentDomain.GetAssemblies();
|
|
|
|
|
}
|
2016-10-26 06:01:42 +00:00
|
|
|
|
}
|
|
|
|
|
}
|