Creates a new Context object which can be used to construct and encode an object file.

Namespace: SharpAssembler.Core
Assembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
Context CreateContext(
	ObjectFile objectfile
)
Visual Basic
Function CreateContext ( _
	objectfile As ObjectFile _
) As Context
Visual C++
Context^ CreateContext(
	ObjectFile^ objectfile
)

Parameters

objectfile
Type: SharpAssembler.Core..::..ObjectFile
The ObjectFile for which the context is created.

Return Value

An architecture specific Context.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionobjectfile == null

Contracts

Requires
objectfile != null
Ensures
Contract.Result<Context>() != null

See Also