You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
@ -28,13 +28,14 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System.Runtime.Serialization;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Runtime.ConstrainedExecution;
|
||||
using System.Reflection;
|
||||
|
||||
namespace System.Runtime.CompilerServices
|
||||
{
|
||||
public static class RuntimeHelpers
|
||||
public static partial class RuntimeHelpers
|
||||
{
|
||||
public delegate void TryCode (Object userData);
|
||||
|
||||
@ -105,24 +106,24 @@ namespace System.Runtime.CompilerServices
|
||||
return SufficientExecutionStack ();
|
||||
}
|
||||
|
||||
[MonoTODO("Currently a no-op")]
|
||||
// [MonoTODO("Currently a no-op")]
|
||||
public static void ExecuteCodeWithGuaranteedCleanup (TryCode code, CleanupCode backoutCode, Object userData)
|
||||
{
|
||||
}
|
||||
|
||||
[MonoTODO("Currently a no-op")]
|
||||
// [MonoTODO("Currently a no-op")]
|
||||
[ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
|
||||
public static void PrepareConstrainedRegions ()
|
||||
{
|
||||
}
|
||||
|
||||
[MonoTODO("Currently a no-op")]
|
||||
// [MonoTODO("Currently a no-op")]
|
||||
[ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
|
||||
public static void PrepareConstrainedRegionsNoOP ()
|
||||
{
|
||||
}
|
||||
|
||||
[MonoTODO("Currently a no-op")]
|
||||
// [MonoTODO("Currently a no-op")]
|
||||
[ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
|
||||
public static void ProbeForSufficientStack()
|
||||
{
|
||||
@ -138,7 +139,7 @@ namespace System.Runtime.CompilerServices
|
||||
// then adds that combination to e.g. AppDomain.DomainUnload, then the client is responsible
|
||||
// for his own preparation.
|
||||
[System.Security.SecurityCritical] // auto-generated_required
|
||||
[MonoTODO("Currently a no-op")]
|
||||
// [MonoTODO("Currently a no-op")]
|
||||
public static void PrepareDelegate (Delegate d)
|
||||
{
|
||||
}
|
||||
@ -156,18 +157,17 @@ namespace System.Runtime.CompilerServices
|
||||
// NOTE: that for the NGen case you can sidestep the required ReliabilityContract
|
||||
// by using the [PrePrepareMethod] attribute.
|
||||
[System.Security.SecurityCritical] // auto-generated_required
|
||||
[ResourceExposure(ResourceScope.None)]
|
||||
[MonoTODO("Currently a no-op")]
|
||||
// [MonoTODO("Currently a no-op")]
|
||||
public static void PrepareContractedDelegate(Delegate d)
|
||||
{
|
||||
}
|
||||
|
||||
[MonoTODO("Currently a no-op")]
|
||||
// [MonoTODO("Currently a no-op")]
|
||||
public static void PrepareMethod (RuntimeMethodHandle method)
|
||||
{
|
||||
}
|
||||
|
||||
[MonoTODO("Currently a no-op")]
|
||||
// [MonoTODO("Currently a no-op")]
|
||||
public static void PrepareMethod (RuntimeMethodHandle method, RuntimeTypeHandle[] instantiation)
|
||||
{
|
||||
}
|
||||
@ -188,5 +188,12 @@ namespace System.Runtime.CompilerServices
|
||||
{
|
||||
return !typeof (T).IsValueType || RuntimeTypeHandle.HasReferences ((typeof (T) as RuntimeType));
|
||||
}
|
||||
|
||||
#if !NETCORE
|
||||
public static object GetUninitializedObject (Type type)
|
||||
{
|
||||
return FormatterServices.GetUninitializedObject (type);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user