Initializes a new instance of the Label class.

Namespace: SharpAssembler.Core.Instructions
Assembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public Label(
	string identifier,
	LabelType labelType
)
Visual Basic
Public Sub New ( _
	identifier As String, _
	labelType As LabelType _
)
Visual C++
public:
Label(
	String^ identifier, 
	LabelType labelType
)

Parameters

identifier
Type: System..::..String
The identifier of the defined symbol.
labelType
Type: SharpAssembler.Core.Instructions..::..LabelType
The type of symbol defined.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionidentifier == null
System.ComponentModel..::..InvalidEnumArgumentException!(Enum.IsDefined(typeof(LabelType), labelType))

Contracts

Requires
identifier != null
Enum.IsDefined(typeof(LabelType), labelType)

See Also