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/class
diff options
context:
space:
mode:
authorSteve Pfister <steveisok@users.noreply.github.com>2019-12-03 16:23:49 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-12-03 16:23:49 +0300
commita3c25e7b4f86b1bb202f80aa260942c6ccfc3a31 (patch)
tree9b08245c3d0eed660006221312ee568b377e40bf /mcs/class
parenta2f9fb77a3704049ffe5de32362029ece154ee4c (diff)
Added Obsolete to AppDomain.CreateDomain for monodroid. (#18000)
* Added Obsolete to AppDomain.CreateDomain for monodroid. The intent is to be helpful for when .NET 5 comes along * Changed AssemblyLoadContext link to a better doc * Bump API snapshot submodule
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/corlib/System/AppDomain.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/mcs/class/corlib/System/AppDomain.cs b/mcs/class/corlib/System/AppDomain.cs
index a4dd2bbd1f7..ed2c28c9acb 100644
--- a/mcs/class/corlib/System/AppDomain.cs
+++ b/mcs/class/corlib/System/AppDomain.cs
@@ -1000,11 +1000,17 @@ namespace System {
}
#if MONO_FEATURE_MULTIPLE_APPDOMAINS
+#if MONODROID
+ [Obsolete ("AppDomain.CreateDomain will no longer be supported in .NET 5 and later. Consider AssemblyLoadContext when it becomes available https://docs.microsoft.com/en-us/dotnet/core/dependency-loading/understanding-assemblyloadcontext")]
+#endif
public static AppDomain CreateDomain (string friendlyName)
{
return CreateDomain (friendlyName, null, null);
}
-
+
+#if MONODROID
+ [Obsolete ("AppDomain.CreateDomain will no longer be supported in .NET 5 and later. Consider AssemblyLoadContext when it becomes available https://docs.microsoft.com/en-us/dotnet/core/dependency-loading/understanding-assemblyloadcontext")]
+#endif
public static AppDomain CreateDomain (string friendlyName, Evidence securityInfo)
{
return CreateDomain (friendlyName, securityInfo, null);
@@ -1015,6 +1021,9 @@ namespace System {
[MonoLimitationAttribute ("Currently it does not allow the setup in the other domain")]
[SecurityPermission (SecurityAction.Demand, ControlAppDomain = true)]
+#if MONODROID
+ [Obsolete ("AppDomain.CreateDomain will no longer be supported in .NET 5 and later. Consider AssemblyLoadContext when it becomes available https://docs.microsoft.com/en-us/dotnet/core/dependency-loading/understanding-assemblyloadcontext")]
+#endif
public static AppDomain CreateDomain (string friendlyName, Evidence securityInfo, AppDomainSetup info)
{
if (friendlyName == null)