Gets the requested size of the operand.
Namespace: SharpAssembler.x86.OperandsAssembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public override DataSize PreferredSize { get; set; } |
| Visual Basic |
|---|
Public Overrides Property PreferredSize As DataSize Get Set |
| Visual C++ |
|---|
public: virtual property DataSize PreferredSize { DataSize get () override; void set (DataSize value) override; } |
Field Value
A member of the DataSize enumeration; or None to specify no size.Implements
IOperand..::..PreferredSizeIOperand..::..PreferredSize
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | The requested size cannot be set. |
| System.ComponentModel..::..InvalidEnumArgumentException | !(Enum.IsDefined(typeof(DataSize), value)) |
Contracts
Get
| Ensures | ||
|---|---|---|
Enum.IsDefined(typeof(DataSize), Contract.Result<DataSize>())
|
Set
| Requires | ||||
|---|---|---|---|---|
Enum.IsDefined(typeof(DataSize), value)
|