Creates a new Context object which can be used to construct and encode an object file.
            
Namespace: SharpAssembler.x86Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
Syntax
| C# | 
|---|
| public Context CreateContext( ObjectFile objectfile ) | 
| Visual Basic | 
|---|
| Public Function CreateContext ( _ objectfile As ObjectFile _ ) As Context | 
| Visual C++ | 
|---|
| public: virtual Context^ CreateContext( ObjectFile^ objectfile ) sealed | 
Parameters
- objectfile
- Type: SharpAssembler.Core..::..ObjectFile
 The ObjectFile for which the context is created.
Return Value
An architecture specific Context.Implements
IArchitecture..::..CreateContext(ObjectFile) Exceptions
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentNullException | objectfile == null | 
 Contracts
Contracts
| Requires | ||||
|---|---|---|---|---|
| objectfile != null 
 | 
| Ensures | ||
|---|---|---|
| Contract.Result<Context>() != null 
 | 





