Checks whether the specified operand size is valid for the specified CPU type.

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

Syntax

C#
public static bool IsValidOperandSize(
	CpuType type,
	DataSize operandSize
)
Visual Basic
Public Shared Function IsValidOperandSize ( _
	type As CpuType, _
	operandSize As DataSize _
) As Boolean
Visual C++
public:
static bool IsValidOperandSize(
	CpuType^ type, 
	DataSize operandSize
)

Parameters

type
Type: SharpAssembler.x86..::..CpuType
The CPU type to test against.
operandSize
Type: SharpAssembler.Core..::..DataSize
The operand size to test.

Return Value

trueTruetruetrue (True in Visual Basic) when operandSize is valid for type; otherwise, falseFalsefalsefalse (False in Visual Basic).

Exceptions

ExceptionCondition
System.ComponentModel..::..InvalidEnumArgumentException!(Enum.IsDefined(typeof(DataSize), operandSize))

Contracts

This method is pure.
Requires
Enum.IsDefined(typeof(DataSize), operandSize)

See Also