summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/LitJson/Netstandard15Polyfill.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/ThirdParty/LitJson/Netstandard15Polyfill.cs')
-rw-r--r--Assets/ThirdParty/LitJson/Netstandard15Polyfill.cs24
1 files changed, 24 insertions, 0 deletions
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