UwpAppxBuildTools.AllowUnsafeCode(XElement) Method

Definition

Enables unsafe code in the generated Assembly-CSharp project.

public:
 static void AllowUnsafeCode(System::Xml::Linq::XElement ^ rootNode);
public static void AllowUnsafeCode (System.Xml.Linq.XElement rootNode);
static member AllowUnsafeCode : System.Xml.Linq.XElement -> unit
Public Shared Sub AllowUnsafeCode (rootNode As XElement)

Parameters

rootNode
XElement

Remarks

This is not required by the research mode, but not using unsafe code with direct memory access results in poor performance. So it is recommended to use unsafe code to an extent.

For further information take a look at https://docs.microsoft.com/windows/mixed-reality/research-mode.

Note that this function is only public to poke a hole for testing - do not take a dependency on this function.

Applies to