Converts a Register to a RegisterOperand.

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 static implicit operator RegisterOperand (
	Register register
)
Visual Basic
Public Shared Widening Operator CType ( _
	register As Register _
) As RegisterOperand
Visual C++
static implicit operator RegisterOperand^ (
	Register register
)

Parameters

register
Type: SharpAssembler.x86..::..Register
The Register to convert.

Return Value

The resulting RegisterOperand.

Exceptions

ExceptionCondition
System.ComponentModel..::..InvalidEnumArgumentException!(Enum.IsDefined(typeof(Register), register))

Contracts

Requires
Enum.IsDefined(typeof(Register), register)

See Also