Method TryParseToString
- Namespace
- WhalesSecret.TradeScriptLib.Entities
- Assembly
- WhalesSecret.TradeScriptLib.dll
TryParseToString(string, out SymbolPair?)
Parses output of ToString() back to the symbol pair.
public static bool TryParseToString(string str, out SymbolPair? symbolPair)
Parameters
str
stringString to parse.
symbolPair
SymbolPair?If the function succeeds, this is set to the symbol pair that corresponds to the input string.
Returns
- bool
true
if parsing was successful,false
if the format of the string to parse was invalid.
Exceptions
- InvalidArgumentException
Thrown if
str
isnull
.