Expose AppDomain.GetData via AppContext.
authorAlex Ghiondea <ghiondea.alexandru@microsoft.com>
Mon, 14 Mar 2016 20:34:43 +0000 (13:34 -0700)
committerAlex Ghiondea <ghiondea.alexandru@microsoft.com>
Mon, 14 Mar 2016 20:34:43 +0000 (13:34 -0700)
This is useful in certain scenarios where there is a need for information to be passed using the AppDomain.GetData methods.

[tfs-changeset: 1585237]

Commit migrated from https://github.com/dotnet/coreclr/commit/c3fc8bd8b7394f5cb17e056949220fa96bcf2333

src/coreclr/src/mscorlib/src/System/AppContext/AppContext.cs

index 5798c7e..0b0643d 100644 (file)
@@ -41,6 +41,14 @@ namespace System
             }
         }
 
+#if FEATURE_CORECLR
+        [System.Security.SecuritySafeCritical]
+#endif
+        public static object GetData(string name)
+        {
+            return AppDomain.CurrentDomain.GetData(name);
+        }
+
         #region Switch APIs
         static AppContext()
         {