AssemblyLoader Class

Definition

This class relies on the ECMA-335 standard to extract information contained in compiled binaries. The standard can be found here: https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-335.pdf, and the section on custom attributes starts on page 267.

public static class AssemblyLoader
type AssemblyLoader = class
Public Module AssemblyLoader
Inheritance
AssemblyLoader

Methods

LoadQirBitcode(FileInfo, Stream)

Loads any QIR bitcode included as a resource from assemblyFileInfo.

LoadReferencedAssembly(String, QsCompilation, Action<Exception>)

Loads the Q# data structures in a referenced assembly with the path asmPath, and returns the loaded content as compilation.

LoadReferencedAssembly(Uri, References+Headers, Boolean, Action<Exception>)

Loads the Q# data structures in a referenced assembly with the URI asm, and returns the loaded content via headers.

LoadSyntaxTree(Byte[], QsCompilation, Action<Exception>)

Given a binary representation of compiled Q# code, returns the corresponding Q# compilation.

LoadSyntaxTree(Stream, QsCompilation, Action<Exception>)
Obsolete.

Given a stream containing a binary representation of compiled Q# code, returns the corresponding Q# compilation.

Applies to