Initializes a new instance of the Symbol class.
Namespace: SharpAssembler.Core.SymbolsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public Symbol( string identifier, IAssociatable association, SymbolType symbolType ) |
Visual Basic |
---|
Public Sub New ( _ identifier As String, _ association As IAssociatable, _ symbolType As SymbolType _ ) |
Visual C++ |
---|
public: Symbol( String^ identifier, IAssociatable^ association, SymbolType symbolType ) |
Parameters
- identifier
- Type: System..::..String
The identifier of the symbol.
- association
- Type: SharpAssembler.Core.Symbols..::..IAssociatable
The object to which this symbol is associated.
- symbolType
- Type: SharpAssembler.Core.Symbols..::..SymbolType
The type of symbol.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | identifier == null |
System..::..ArgumentNullException | association == null |
System.ComponentModel..::..InvalidEnumArgumentException | !(Enum.IsDefined(typeof(SymbolType), symbolType)) |
Contracts
Requires | ||
---|---|---|
identifier != null
| ||
association != null
| ||
Enum.IsDefined(typeof(SymbolType), symbolType) |