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
path: root/mcs
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2018-07-15 12:07:47 +0300
committerMarek Safar <marek.safar@gmail.com>2018-07-16 23:46:08 +0300
commitde669c45a1f544ca8c2e874fca4b5e50e5227472 (patch)
tree3716dbc66597f697ec181f9db7765d5381a25f1f /mcs
parent2e3c4398a9d0d8e3f86b60e753f3da6393a26897 (diff)
[mscorlib] Adds PreserveDependencyAttribute
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/corlib/System.Runtime.CompilerServices/PreserveDependencyAttribute.cs40
-rw-r--r--mcs/class/corlib/corlib.dll.sources1
2 files changed, 41 insertions, 0 deletions
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/PreserveDependencyAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/PreserveDependencyAttribute.cs
new file mode 100644
index 00000000000..d08dc4ce7d5
--- /dev/null
+++ b/mcs/class/corlib/System.Runtime.CompilerServices/PreserveDependencyAttribute.cs
@@ -0,0 +1,40 @@
+//
+// PreserveDependencyAttribute.cs
+//
+// Authors:
+// Marek Safar <marek.safar@gmail.com>
+//
+// Copyright (C) 2018 Microsoft Corporation
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace System.Runtime.CompilerServices {
+ [AttributeUsage (AttributeTargets.Method | AttributeTargets.Constructor, AllowMultiple = true)]
+ /*public*/ sealed class PreserveDependencyAttribute : Attribute {
+ public PreserveDependencyAttribute (string metadataSignature)
+ {
+ }
+
+ public PreserveDependencyAttribute (string metadataSignature, string condition)
+ {
+ }
+ }
+} \ No newline at end of file
diff --git a/mcs/class/corlib/corlib.dll.sources b/mcs/class/corlib/corlib.dll.sources
index ee5e99a4025..09d69d8b6a6 100644
--- a/mcs/class/corlib/corlib.dll.sources
+++ b/mcs/class/corlib/corlib.dll.sources
@@ -330,6 +330,7 @@ System.Runtime/MemoryFailPoint.cs
System.Runtime.CompilerServices/ConditionalWeakTable.cs
System.Runtime.CompilerServices/RuntimeHelpers.cs
System.Runtime.CompilerServices/Unsafe.cs
+System.Runtime.CompilerServices/PreserveDependencyAttribute.cs
System.Runtime.Hosting/ActivationArguments.cs
System.Runtime.Hosting/ApplicationActivator.cs
System.Runtime.InteropServices/_Activator.cs