Creates a new Context object which can be used to construct and encode an object file.
            
Namespace: SharpAssembler.CoreAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
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
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentNullException | objectfile == null | 
 Contracts
Contracts
| Requires | ||
|---|---|---|
| objectfile != null 
 | 
| Ensures | 
|---|
| Contract.Result<Context>() != null | 





