summaryrefslogtreecommitdiff
path: root/Runtime/Export/UnityEngineInternal/WrappedTypes.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Export/UnityEngineInternal/WrappedTypes.cs
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Export/UnityEngineInternal/WrappedTypes.cs')
-rw-r--r--Runtime/Export/UnityEngineInternal/WrappedTypes.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Runtime/Export/UnityEngineInternal/WrappedTypes.cs b/Runtime/Export/UnityEngineInternal/WrappedTypes.cs
new file mode 100644
index 0000000..54c2444
--- /dev/null
+++ b/Runtime/Export/UnityEngineInternal/WrappedTypes.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+namespace UnityEngineInternal
+{
+ // This is a solution to problem where we cannot use:
+ // * System.Collections.Stack on WP8 and Metro, because it was stripped from .NET
+ // * System.Collections.Generic.Stack cannot use on iOS because it creates a dependency to System.dll thus increasing overall executable size
+#if UNITY_WINRT
+ public class GenericStack : Stack<Object>
+ {
+
+ }
+#else
+ public class GenericStack : System.Collections.Stack
+ {
+
+ }
+#endif
+
+} \ No newline at end of file