Returns the register type of the specified register.
Namespace: SharpAssembler.x86Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public static RegisterType GetRegisterType( this Register register ) |
| Visual Basic |
|---|
<ExtensionAttribute> _ Public Shared Function GetRegisterType ( _ register As Register _ ) As RegisterType |
| Visual C++ |
|---|
[ExtensionAttribute] public: static RegisterType GetRegisterType( Register register ) |
Parameters
- register
- Type: SharpAssembler.x86..::..Register
The Register to get the type for.
Return Value
The RegisterType of the register.Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Register. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Exceptions
| Exception | Condition |
|---|---|
| System.ComponentModel..::..InvalidEnumArgumentException | !(Enum.IsDefined(typeof(Register), register)) |
Contracts
This method is pure.
| Requires |
|---|
Enum.IsDefined(typeof(Register), register) |
| Ensures |
|---|
Enum.IsDefined(typeof(RegisterType), Contract.Result<RegisterType>()) |