Converts a LabelType to the corresponding SymbolType.
Namespace: SharpAssembler.Core.InstructionsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public static SymbolType ToSymbolType( this LabelType type ) |
| Visual Basic |
|---|
<ExtensionAttribute> _ Public Shared Function ToSymbolType ( _ type As LabelType _ ) As SymbolType |
| Visual C++ |
|---|
[ExtensionAttribute] public: static SymbolType ToSymbolType( LabelType type ) |
Parameters
- type
- Type: SharpAssembler.Core.Instructions..::..LabelType
The LabelType to convert.
Return Value
The resulting SymbolType.Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type LabelType. 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(LabelType), type)) |
Contracts
| Requires |
|---|
Enum.IsDefined(typeof(LabelType), type) |