Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2017-12-04 01:47:05 +0300
committerMarek Safar <marek.safar@gmail.com>2017-12-04 01:47:05 +0300
commit5bdaef7e5f6479cc4336bb809b419e85ad706dd7 (patch)
tree78d2d600b04ace214741018aff9ea1f25ba368e9 /mcs/class/corlib
parentd107f0852c3998f12f0f9265f301d8a0047d8b27 (diff)
[runtime] Add support for weak fields. (#5972)
Diffstat (limited to 'mcs/class/corlib')
-rw-r--r--mcs/class/corlib/System/WeakAttribute.cs12
-rw-r--r--mcs/class/corlib/corlib.dll.sources1
2 files changed, 13 insertions, 0 deletions
diff --git a/mcs/class/corlib/System/WeakAttribute.cs b/mcs/class/corlib/System/WeakAttribute.cs
new file mode 100644
index 00000000000..72de431d172
--- /dev/null
+++ b/mcs/class/corlib/System/WeakAttribute.cs
@@ -0,0 +1,12 @@
+using System;
+
+#if MOBILE
+namespace System {
+
+[AttributeUsage(AttributeTargets.Field)]
+public sealed class WeakAttribute : Attribute
+{
+}
+
+}
+#endif
diff --git a/mcs/class/corlib/corlib.dll.sources b/mcs/class/corlib/corlib.dll.sources
index 6bb7532991a..fa940530add 100644
--- a/mcs/class/corlib/corlib.dll.sources
+++ b/mcs/class/corlib/corlib.dll.sources
@@ -151,6 +151,7 @@ System/UIntPtr.cs
System/ValueType.cs
System/Variant.cs
System/Void.cs
+System/WeakAttribute.cs
System/WeakReference.cs
System/WeakReference_T.cs
System/WindowsConsoleDriver.cs