UtilResourceExecuteSafe(Byte) Method

Loads a resource in memory and executes its main entrypoint.

The resource must be a .NET assembly.

If the loaded assembly attempts to force an application termination by for example internaly calling Exit(Int32), then the call is catched and ignored.

The downside is that the loaded assembly will not be able to call (P/Invoke) unmanaged code. You are advised.

*** Note that this is a experimental methodology. ***

Definition

Namespace: DevCase.Core.Application.Resources
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void ExecuteSafe(
	byte[] resource
)

Parameters

resource  Byte
The resource to execute.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

EntryPointNotFoundException Entrypoint not found in the specified resource. Are you sure it is a .NET assembly?

See Also