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:
Diffstat (limited to 'mcs/class/referencesource/mscorlib/system/threading/Tasks/TaskScheduler.cs')
-rw-r--r--mcs/class/referencesource/mscorlib/system/threading/Tasks/TaskScheduler.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/threading/Tasks/TaskScheduler.cs b/mcs/class/referencesource/mscorlib/system/threading/Tasks/TaskScheduler.cs
index 81226e07e9f..7ca0c6f3dd2 100644
--- a/mcs/class/referencesource/mscorlib/system/threading/Tasks/TaskScheduler.cs
+++ b/mcs/class/referencesource/mscorlib/system/threading/Tasks/TaskScheduler.cs
@@ -341,6 +341,14 @@ namespace System.Threading.Tasks
}
}
+ internal static bool IsDefault
+ {
+ get
+ {
+ return Current == Default;
+ }
+ }
+
/// <summary>
/// Gets the <see cref="System.Threading.Tasks.TaskScheduler">TaskScheduler</see>
/// associated with the currently executing task.