mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			839 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			839 B
		
	
	
	
		
			C#
		
	
	
	
	
	
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);
 | 
						|
        }
 | 
						|
 | 
						|
        public string[] GetManifestResourceNames(Type type)
 | 
						|
        {
 | 
						|
#if NET46
 | 
						|
            return type.Assembly.GetManifestResourceNames();
 | 
						|
#endif
 | 
						|
            return type.GetTypeInfo().Assembly.GetManifestResourceNames();
 | 
						|
        }
 | 
						|
 | 
						|
        public Assembly[] GetCurrentAssemblies()
 | 
						|
        {
 | 
						|
            return AppDomain.CurrentDomain.GetAssemblies();
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |