Gets the value associated with the specified key.
Namespace: SharpAssembler.Core.SymbolsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public bool TryGetValue( string key, out Symbol value ) |
| Visual Basic |
|---|
Public Function TryGetValue ( _ key As String, _ <OutAttribute> ByRef value As Symbol _ ) As Boolean |
| Visual C++ |
|---|
public: bool TryGetValue( String^ key, [OutAttribute] Symbol^% value ) |
Parameters
- key
- Type: System..::..String
The key of the value to get.
- value
- Type: SharpAssembler.Core.Symbols..::..Symbol%
When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter.
Return Value
trueTruetruetrue (True in Visual Basic) if the SymbolTable contains an element with the specified key; otherwise, falseFalsefalsefalse (False in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | key == null |
Contracts
| Requires | ||
|---|---|---|
key != null
|