Initializes a new instance of the Label class.
Namespace: SharpAssembler.Core.InstructionsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public Label( string identifier, LabelType labelType, Int128 length ) |
Visual Basic |
---|
Public Sub New ( _ identifier As String, _ labelType As LabelType, _ length As Int128 _ ) |
Visual C++ |
---|
public: Label( String^ identifier, LabelType labelType, Int128 length ) |
Parameters
- identifier
- Type: System..::..String
The identifier of the defined symbol.
- labelType
- Type: SharpAssembler.Core.Instructions..::..LabelType
The type of symbol defined.
- length
- Type: SharpAssembler.Core..::..Int128
The length of the symbol.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | identifier == null |
System.ComponentModel..::..InvalidEnumArgumentException | !(Enum.IsDefined(typeof(LabelType), labelType)) |
System..::..ArgumentOutOfRangeException | length < 0 |
Contracts
Requires | ||
---|---|---|
identifier != null
| ||
Enum.IsDefined(typeof(LabelType), labelType) | ||
length >= 0
|