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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2017-10-04 05:14:06 +0300
committerGitHub <noreply@github.com>2017-10-04 05:14:06 +0300
commit7017c3cd5c64f020acc0089000696d9fba2571c5 (patch)
tree06323225e40b18095a82604313d3a49c4b91d74a
parentd1223d2c92e1de67cebfa5c8668b67e6d6265d8c (diff)
parentaa88b526a550f2dd5c20bd45915556d8b3f8d051 (diff)
Merge pull request #4654 from stephentoub/ctr_token
Make CancellationTokenRegistration.Token public
-rw-r--r--src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs b/src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs
index 035e2f081..c5e86be69 100644
--- a/src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs
+++ b/src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs
@@ -35,7 +35,7 @@ namespace System.Threading
/// registration isn't associated with a token (such as after the registration has been disposed),
/// this will return a default token.
/// </summary>
- internal CancellationToken Token => m_callbackInfo?.CancellationTokenSource.Token ?? default(CancellationToken);
+ public CancellationToken Token => m_callbackInfo?.CancellationTokenSource.Token ?? default(CancellationToken);
/// <summary>
/// Attempts to deregister the item. If it's already being run, this may fail.