public ILLazyCasting(ILCoder coding, ILData value, CastOperations operations, Type related) : base(coding) { this._op = operations; this._value = value; if (operations == CastOperations.Box) { this._castType = typeof(object); } else { this._castType = related; } }
static unsafe void GetMessageFromNativeResources(int kind, StringPtrOnStack msg) { switch (kind) { case 1: *msg.ptr = CastOperations.ReinterpretAsPointer("ThreadAbort"); break; case 2: *msg.ptr = CastOperations.ReinterpretAsPointer("ThreadInterrupted"); break; case 3: *msg.ptr = CastOperations.ReinterpretAsPointer("OutOfMemory"); break; default: *msg.ptr = CastOperations.ReinterpretAsPointer("Unknown Exception (GetMessageFromNativeResources)"); break; } }
static unsafe bool ManifestBasedResourceGroveler_GetNeutralResourcesLanguageAttribute(TysosAssembly a, StringPtrOnStack cultureName, out short fallbackLocation) { *cultureName.ptr = CastOperations.ReinterpretAsPointer(""); fallbackLocation = 0; return(false); }