From 266370578135dca270729e8a70252e776ed22898 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Fri, 12 May 2023 13:52:37 +0800 Subject: + litjson --- .../LitJson/Netstandard15Polyfill.cs | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 WorldlineKeepers/Assets/Standard Assets/LitJson/Netstandard15Polyfill.cs (limited to 'WorldlineKeepers/Assets/Standard Assets/LitJson/Netstandard15Polyfill.cs') diff --git a/WorldlineKeepers/Assets/Standard Assets/LitJson/Netstandard15Polyfill.cs b/WorldlineKeepers/Assets/Standard Assets/LitJson/Netstandard15Polyfill.cs new file mode 100644 index 0000000..55b02a2 --- /dev/null +++ b/WorldlineKeepers/Assets/Standard Assets/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