24 lines
		
	
	
		
			559 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			559 B
		
	
	
	
		
			C#
		
	
	
	
|  | #if NETSTANDARD1_5 | ||
|  | using System; | ||
|  | using System.Reflection; | ||
|  | namespace AnyThinkAds.ThirdParty.LitJson | ||
|  | { | ||
|  |     internal static class Netstandard15Polyfill | ||
|  |     { | ||
|  |         internal static Type GetInterface(this Type type, string name) | ||
|  |         { | ||
|  |             return type.GetTypeInfo().GetInterface(name);  | ||
|  |         } | ||
|  | 
 | ||
|  |         internal static bool IsClass(this Type type) | ||
|  |         { | ||
|  |             return type.GetTypeInfo().IsClass; | ||
|  |         } | ||
|  | 
 | ||
|  |         internal static bool IsEnum(this Type type) | ||
|  |         { | ||
|  |             return type.GetTypeInfo().IsEnum; | ||
|  |         } | ||
|  |     } | ||
|  | } | ||
|  | #endif |