Gets or sets the scaling factor.

Namespace: SharpAssembler.x86.Operands
Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public int Scale { get; set; }
Visual Basic
Public Property Scale As Integer
	Get
	Set
Visual C++
public:
property int Scale {
	int get ();
	void set (int value);
}

Field Value

The scaling factor, which must be zero, or a positive power of two less than or equal to 8.

Exceptions

ExceptionCondition
System..::..ArgumentException!(MathExt.IsPowerOfTwo(value))
System..::..ArgumentOutOfRangeExceptionvalue > 8

Contracts

Get

Ensures
MathExt.IsPowerOfTwo(Contract.Result<int>())
Contract.Result<int>() <= 8

Set

Requires
MathExt.IsPowerOfTwo(value)
value <= 8

See Also