Initializes a new instance of the ExpressionEmittable class.
Namespace: SharpAssembler.Core.InstructionsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public ExpressionEmittable( SimpleExpression expression, DataSize size ) |
| Visual Basic |
|---|
Public Sub New ( _ expression As SimpleExpression, _ size As DataSize _ ) |
| Visual C++ |
|---|
public: ExpressionEmittable( SimpleExpression^ expression, DataSize size ) |
Parameters
- expression
- Type: SharpAssembler.Core..::..SimpleExpression
The expression of the value.
- size
- Type: SharpAssembler.Core..::..DataSize
The size of the result.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | expression == null |
| System.ComponentModel..::..InvalidEnumArgumentException | !(Enum.IsDefined(typeof(DataSize), size)) |
| System..::..ArgumentException | size == DataSize.None |
Contracts
| Requires | ||
|---|---|---|
expression != null
| ||
Enum.IsDefined(typeof(DataSize), size) | ||
size != DataSize.None
|