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.
24 lines
536 B
24 lines
536 B
2 years ago
|
#if NETSTANDARD1_5
|
||
|
using System;
|
||
|
using System.Reflection;
|
||
|
namespace 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
|