10 [__DynamicallyInvokable]
15 public delegate
void TryCode(
object userData);
21 public delegate
void CleanupCode(
object userData,
bool exceptionThrown);
25 [__DynamicallyInvokable]
29 [__DynamicallyInvokable]
40 [SecuritySafeCritical]
41 [__DynamicallyInvokable]
48 [SecuritySafeCritical]
49 [__DynamicallyInvokable]
53 [SecuritySafeCritical]
54 private static extern void _RunClassConstructor(RuntimeType type);
59 [__DynamicallyInvokable]
62 _RunClassConstructor(type.GetRuntimeType());
66 [SecuritySafeCritical]
67 private static extern void _RunModuleConstructor(RuntimeModule module);
74 _RunModuleConstructor(module.GetRuntimeModule());
79 private unsafe
static extern void _PrepareMethod(IRuntimeMethodInfo method,
IntPtr* pInstantiation,
int cInstantiation);
83 [SuppressUnmanagedCodeSecurity]
84 internal static extern void _CompileMethod(IRuntimeMethodInfo method);
91 _PrepareMethod(method.GetMethodInfo(),
null, 0);
103 fixed (
IntPtr* pInstantiation = array2)
105 _PrepareMethod(method.GetMethodInfo(), pInstantiation, length);
126 [SecuritySafeCritical]
127 [__DynamicallyInvokable]
136 [SecuritySafeCritical]
137 public new static extern bool Equals(
object o1,
object o2);
142 [SecuritySafeCritical]
143 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
144 [__DynamicallyInvokable]
150 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.MayFail)]
155 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.MayFail)]
163 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.MayFail)]
177 internal static void ExecuteBackoutCodeHelper(
object backoutCode,
object userData,
bool exceptionThrown)
179 ((
CleanupCode)backoutCode)(userData, exceptionThrown);
delegate void TryCode(object userData)
Represents a delegate to code that should be run in a try block..
static void PrepareMethod(RuntimeMethodHandle method)
Prepares a method for inclusion in a constrained execution region (CER).
static void PrepareContractedDelegate(Delegate d)
Provides a way for applications to dynamically prepare T:System.AppDomain event delegates.
static void ProbeForSufficientStack()
Probes for a certain amount of stack space to ensure that a stack overflow cannot happen within a sub...
static void InitializeArray(Array array, RuntimeFieldHandle fldHandle)
Provides a fast way to initialize an array from data that is stored in a module.
static int GetHashCode(object o)
Serves as a hash function for a particular object, and is suitable for use in algorithms and data str...
static void ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, object userData)
Executes code using a T:System.Delegate while using another T:System.Delegate to execute additional c...
Represents a field using an internal metadata token.
Represents a runtime handle for a module.
static void KeepAlive(object obj)
References the specified object, which makes it ineligible for garbage collection from the start of t...
Represents a type using an internal metadata token.
static void PrepareConstrainedRegionsNoOP()
Designates a body of code as a constrained execution region (CER) without performing any probing.
Cer
Specifies a method's behavior when called within a constrained execution region.
static new bool Equals(object o1, object o2)
Determines whether the specified T:System.Object instances are considered equal.
T:System.RuntimeMethodHandle is a handle to the internal metadata representation of a method.
static void RunModuleConstructor(ModuleHandle module)
Runs a specified module constructor method.
static object GetObjectValue(object obj)
Boxes a value type.
A platform-specific type that is used to represent a pointer or a handle.
static void PrepareConstrainedRegions()
Designates a body of code as a constrained execution region (CER).
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Represents a delegate, which is a data structure that refers to a static method or to a class instanc...
MethodImplOptions
Defines the details of how a method is implemented.
CharSet
Dictates which character set marshaled strings should use.
Controls the system garbage collector, a service that automatically reclaims unused memory.
delegate void CleanupCode(object userData, bool exceptionThrown)
Represents a method to run when an exception occurs.
static int OffsetToStringData
Gets the offset, in bytes, to the data in the given string.
Consistency
Specifies a reliability contract.
static void RunClassConstructor(RuntimeTypeHandle type)
Runs a specified class constructor method.
static unsafe void PrepareMethod(RuntimeMethodHandle method, RuntimeTypeHandle[] instantiation)
Prepares a method for inclusion in a constrained execution region (CER) with the specified instantiat...
static void EnsureSufficientExecutionStack()
Ensures that the remaining stack space is large enough to execute the average .NET Framework function...
Provides a set of static methods and properties that provide support for compilers....
static void PrepareDelegate(Delegate d)
Indicates that the specified delegate should be prepared for inclusion in a constrained execution reg...