Initializes a new instance of the Symbol class.

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

Syntax

C#
public Symbol(
	IIdentifiable association,
	SymbolType symbolType
)
Visual Basic
Public Sub New ( _
	association As IIdentifiable, _
	symbolType As SymbolType _
)
Visual C++
public:
Symbol(
	IIdentifiable^ association, 
	SymbolType symbolType
)

Parameters

association
Type: SharpAssembler.Core.Symbols..::..IIdentifiable
The object to which this symbol is associated.
symbolType
Type: SharpAssembler.Core.Symbols..::..SymbolType
The type of symbol.

Remarks

The value of the Identifier property reflects the identifier of the associated object.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionassociation == null
System.ComponentModel..::..InvalidEnumArgumentException!(Enum.IsDefined(typeof(SymbolType), symbolType))

Contracts

Requires
association != null
Enum.IsDefined(typeof(SymbolType), symbolType)

See Also