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

github.com/mono/api-snapshot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonojenkins <jo.shields+jenkins@xamarin.com>2019-02-05 14:58:10 +0300
committermonojenkins <jo.shields+jenkins@xamarin.com>2019-02-05 14:58:10 +0300
commit72d94a13f3c4c3fcd664a5c0d5cee2ab5fdd9702 (patch)
treed3b697bffc82f2bf4a8c1cd71ba8985542dd73dd
parent6d99111390d0466cd86f73ec1e8cf3f7d1a64350 (diff)
Apply changes from https://github.com/mono/mono/pull/12780 to API snapshot
-rw-r--r--profiles/monodroid/mscorlib.cs8
-rw-r--r--profiles/monotouch/mscorlib.cs8
-rw-r--r--profiles/net_4_x/mscorlib.cs8
3 files changed, 9 insertions, 15 deletions
diff --git a/profiles/monodroid/mscorlib.cs b/profiles/monodroid/mscorlib.cs
index 2a82ee0..6765eb9 100644
--- a/profiles/monodroid/mscorlib.cs
+++ b/profiles/monodroid/mscorlib.cs
@@ -24331,12 +24331,10 @@ namespace System.Threading
public AutoResetEvent(bool initialState) : base (default(bool), default(System.Threading.EventResetMode)) { }
}
[System.Diagnostics.DebuggerDisplayAttribute("IsCancellationRequested = {IsCancellationRequested}")]
- [System.Runtime.InteropServices.ComVisibleAttribute(false)]
- [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Synchronization=true, ExternalThreading=true)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public partial struct CancellationToken
+ public readonly partial struct CancellationToken
{
- private object _dummy;
+ private readonly object _dummy;
public CancellationToken(bool canceled) { throw null; }
public bool CanBeCanceled { get { throw null; } }
public bool IsCancellationRequested { get { throw null; } }
@@ -24351,6 +24349,7 @@ namespace System.Threading
public System.Threading.CancellationTokenRegistration Register(System.Action callback, bool useSynchronizationContext) { throw null; }
public System.Threading.CancellationTokenRegistration Register(System.Action<object> callback, object state) { throw null; }
public System.Threading.CancellationTokenRegistration Register(System.Action<object> callback, object state, bool useSynchronizationContext) { throw null; }
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]public System.Threading.CancellationTokenRegistration Register(System.Action<object> callback, object state, bool useSynchronizationContext, bool useExecutionContext) { throw null; }
public void ThrowIfCancellationRequested() { }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
@@ -24366,7 +24365,6 @@ namespace System.Threading
public static bool operator !=(System.Threading.CancellationTokenRegistration left, System.Threading.CancellationTokenRegistration right) { throw null; }
public bool Unregister() { throw null; }
}
- [System.Runtime.InteropServices.ComVisibleAttribute(false)]
public partial class CancellationTokenSource : System.IDisposable
{
public CancellationTokenSource() { }
diff --git a/profiles/monotouch/mscorlib.cs b/profiles/monotouch/mscorlib.cs
index 7a30342..066a2ea 100644
--- a/profiles/monotouch/mscorlib.cs
+++ b/profiles/monotouch/mscorlib.cs
@@ -23178,12 +23178,10 @@ namespace System.Threading
public AutoResetEvent(bool initialState) : base (default(bool), default(System.Threading.EventResetMode)) { }
}
[System.Diagnostics.DebuggerDisplayAttribute("IsCancellationRequested = {IsCancellationRequested}")]
- [System.Runtime.InteropServices.ComVisibleAttribute(false)]
- [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Synchronization=true, ExternalThreading=true)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public partial struct CancellationToken
+ public readonly partial struct CancellationToken
{
- private object _dummy;
+ private readonly object _dummy;
public CancellationToken(bool canceled) { throw null; }
public bool CanBeCanceled { get { throw null; } }
public bool IsCancellationRequested { get { throw null; } }
@@ -23198,6 +23196,7 @@ namespace System.Threading
public System.Threading.CancellationTokenRegistration Register(System.Action callback, bool useSynchronizationContext) { throw null; }
public System.Threading.CancellationTokenRegistration Register(System.Action<object> callback, object state) { throw null; }
public System.Threading.CancellationTokenRegistration Register(System.Action<object> callback, object state, bool useSynchronizationContext) { throw null; }
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]public System.Threading.CancellationTokenRegistration Register(System.Action<object> callback, object state, bool useSynchronizationContext, bool useExecutionContext) { throw null; }
public void ThrowIfCancellationRequested() { }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
@@ -23213,7 +23212,6 @@ namespace System.Threading
public static bool operator !=(System.Threading.CancellationTokenRegistration left, System.Threading.CancellationTokenRegistration right) { throw null; }
public bool Unregister() { throw null; }
}
- [System.Runtime.InteropServices.ComVisibleAttribute(false)]
public partial class CancellationTokenSource : System.IDisposable
{
public CancellationTokenSource() { }
diff --git a/profiles/net_4_x/mscorlib.cs b/profiles/net_4_x/mscorlib.cs
index 25bde7c..42a2271 100644
--- a/profiles/net_4_x/mscorlib.cs
+++ b/profiles/net_4_x/mscorlib.cs
@@ -24475,12 +24475,10 @@ namespace System.Threading
public AutoResetEvent(bool initialState) : base (default(bool), default(System.Threading.EventResetMode)) { }
}
[System.Diagnostics.DebuggerDisplayAttribute("IsCancellationRequested = {IsCancellationRequested}")]
- [System.Runtime.InteropServices.ComVisibleAttribute(false)]
- [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Synchronization=true, ExternalThreading=true)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public partial struct CancellationToken
+ public readonly partial struct CancellationToken
{
- private object _dummy;
+ private readonly object _dummy;
public CancellationToken(bool canceled) { throw null; }
public bool CanBeCanceled { get { throw null; } }
public bool IsCancellationRequested { get { throw null; } }
@@ -24495,6 +24493,7 @@ namespace System.Threading
public System.Threading.CancellationTokenRegistration Register(System.Action callback, bool useSynchronizationContext) { throw null; }
public System.Threading.CancellationTokenRegistration Register(System.Action<object> callback, object state) { throw null; }
public System.Threading.CancellationTokenRegistration Register(System.Action<object> callback, object state, bool useSynchronizationContext) { throw null; }
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]public System.Threading.CancellationTokenRegistration Register(System.Action<object> callback, object state, bool useSynchronizationContext, bool useExecutionContext) { throw null; }
public void ThrowIfCancellationRequested() { }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
@@ -24510,7 +24509,6 @@ namespace System.Threading
public static bool operator !=(System.Threading.CancellationTokenRegistration left, System.Threading.CancellationTokenRegistration right) { throw null; }
public bool Unregister() { throw null; }
}
- [System.Runtime.InteropServices.ComVisibleAttribute(false)]
public partial class CancellationTokenSource : System.IDisposable
{
public CancellationTokenSource() { }