You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
|
return type.Assembly.GetManifestResourceStream(resource);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string[] GetManifestResourceNames(Type type)
|
|
|
|
|
{
|
|
|
|
|
return type.Assembly.GetManifestResourceNames();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Assembly[] GetCurrentAssemblies()
|
|
|
|
|
{
|
|
|
|
|
return AppDomain.CurrentDomain.GetAssemblies();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|