Converts a LabelType to the corresponding SymbolType.

Namespace: SharpAssembler.Core.Instructions
Assembly: 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
)

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 or .

Exceptions

ExceptionCondition
System.ComponentModel..::..InvalidEnumArgumentException!(Enum.IsDefined(typeof(LabelType), type))

Contracts

Requires
Enum.IsDefined(typeof(LabelType), type)

See Also