From adbdd29d98ee96e1c6d3d7932c4d8348157d2b87 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 9 Sep 2021 17:24:41 +0800 Subject: +litJson --- Assets/ThirdParty/LitJson/Netstandard15Polyfill.cs | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Assets/ThirdParty/LitJson/Netstandard15Polyfill.cs (limited to 'Assets/ThirdParty/LitJson/Netstandard15Polyfill.cs') diff --git a/Assets/ThirdParty/LitJson/Netstandard15Polyfill.cs b/Assets/ThirdParty/LitJson/Netstandard15Polyfill.cs new file mode 100644 index 00000000..55b02a21 --- /dev/null +++ b/Assets/ThirdParty/LitJson/Netstandard15Polyfill.cs @@ -0,0 +1,24 @@ +#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 \ No newline at end of file -- cgit v1.1-26-g67d0